Commit a224f38
committed
Auto merge of #134064 - jieyouxu:revert-131669, r=ChrisDenton
Revert #131669 due to ICEs
Revert [lint: change help for pointers to dyn types in FFI #131669](#131669) due to ICE reports:
- <#134059> (real-world)
- <#134060> (fuzzing)
Closes #134060.
The revert criteria I used to assess whether to post this revert was:
1. It's not trivial to fix-forward. (1) The implementation itself is tricky due to `tcx.is_sized` query not being very trivial. (2) It will need more extensive test coverage for different ty kinds.
2. It is impacting real-world crates, i.e. #134059.
3. `improper_ctypes_definitions` is a warn-by-default lint.
This revert is without prejudice to relanding the changes. The changes can be re-landed with those cases addressed and stronger test coverage.
A rough regression test corresponding to the fuzzed example reported in #134060 is added to check that the revert worked, it is not sufficient for the lint test coverage when the lint improvements are to be relanded. Please feel free to improve the test in the reland.
r? `@workingjubilee` (or compiler)
cc `@niacdoial` (PR author)File tree
17 files changed
+208
-490
lines changed- compiler/rustc_lint
- src
- tests/ui
- extern
- lint
17 files changed
+208
-490
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
| 362 | + | |
362 | 363 | | |
363 | 364 | | |
364 | 365 | | |
| |||
376 | 377 | | |
377 | 378 | | |
378 | 379 | | |
379 | | - | |
380 | 380 | | |
381 | | - | |
382 | 381 | | |
383 | 382 | | |
384 | 383 | | |
| |||
389 | 388 | | |
390 | 389 | | |
391 | 390 | | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
| 391 | + | |
397 | 392 | | |
398 | 393 | | |
399 | 394 | | |
| |||
419 | 414 | | |
420 | 415 | | |
421 | 416 | | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | 417 | | |
427 | 418 | | |
428 | 419 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1851 | 1851 | | |
1852 | 1852 | | |
1853 | 1853 | | |
1854 | | - | |
1855 | | - | |
1856 | | - | |
1857 | | - | |
1858 | | - | |
1859 | | - | |
1860 | | - | |
1861 | | - | |
1862 | | - | |
1863 | | - | |
1864 | | - | |
1865 | | - | |
1866 | | - | |
1867 | | - | |
1868 | | - | |
1869 | | - | |
1870 | | - | |
1871 | | - | |
1872 | | - | |
1873 | | - | |
1874 | | - | |
1875 | | - | |
1876 | | - | |
1877 | | - | |
1878 | | - | |
1879 | | - | |
1880 | | - | |
1881 | | - | |
1882 | | - | |
1883 | | - | |
1884 | | - | |
1885 | | - | |
1886 | | - | |
1887 | 1854 | | |
1888 | 1855 | | |
1889 | 1856 | | |
1890 | 1857 | | |
1891 | | - | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
1892 | 1861 | | |
1893 | 1862 | | |
1894 | 1863 | | |
| |||
1898 | 1867 | | |
1899 | 1868 | | |
1900 | 1869 | | |
1901 | | - | |
1902 | | - | |
| 1870 | + | |
| 1871 | + | |
| 1872 | + | |
| 1873 | + | |
| 1874 | + | |
| 1875 | + | |
1903 | 1876 | | |
1904 | 1877 | | |
1905 | 1878 | | |
| |||
0 commit comments