Commit 9db3fdd
authored
Rollup merge of rust-lang#66217 - RalfJung:diagnostic-items, r=Centril
invalid_value lint: use diagnostic items
This adjusts the invalid_value lint to use diagnostic items.
@Centril @oli-obk For some reason, this fails to recognize `transmute` -- somehow the diagnostic item is not found. Any idea why?
r? @Centril
Cc rust-lang#66075File tree
4 files changed
+16
-19
lines changed- src
- libcore/mem
- librustc_lint
- libsyntax_pos
4 files changed
+16
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| 259 | + | |
259 | 260 | | |
260 | 261 | | |
261 | 262 | | |
| |||
339 | 340 | | |
340 | 341 | | |
341 | 342 | | |
| 343 | + | |
342 | 344 | | |
343 | 345 | | |
344 | 346 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
| 471 | + | |
471 | 472 | | |
472 | 473 | | |
473 | 474 | | |
| |||
496 | 497 | | |
497 | 498 | | |
498 | 499 | | |
| 500 | + | |
499 | 501 | | |
500 | 502 | | |
501 | 503 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1903 | 1903 | | |
1904 | 1904 | | |
1905 | 1905 | | |
1906 | | - | |
1907 | | - | |
1908 | 1906 | | |
1909 | 1907 | | |
| 1908 | + | |
| 1909 | + | |
1910 | 1910 | | |
1911 | 1911 | | |
1912 | | - | |
1913 | | - | |
1914 | | - | |
1915 | | - | |
1916 | 1912 | | |
1917 | 1913 | | |
1918 | 1914 | | |
1919 | 1915 | | |
1920 | 1916 | | |
1921 | 1917 | | |
1922 | | - | |
| 1918 | + | |
1923 | 1919 | | |
1924 | | - | |
1925 | | - | |
| 1920 | + | |
1926 | 1921 | | |
1927 | | - | |
1928 | | - | |
| 1922 | + | |
1929 | 1923 | | |
1930 | 1924 | | |
1931 | 1925 | | |
| |||
1940 | 1934 | | |
1941 | 1935 | | |
1942 | 1936 | | |
1943 | | - | |
| 1937 | + | |
| 1938 | + | |
1944 | 1939 | | |
1945 | | - | |
| 1940 | + | |
1946 | 1941 | | |
1947 | 1942 | | |
1948 | 1943 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
421 | | - | |
422 | | - | |
423 | | - | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
424 | 425 | | |
425 | 426 | | |
426 | 427 | | |
| |||
713 | 714 | | |
714 | 715 | | |
715 | 716 | | |
716 | | - | |
717 | | - | |
718 | 717 | | |
719 | 718 | | |
720 | 719 | | |
| |||
745 | 744 | | |
746 | 745 | | |
747 | 746 | | |
748 | | - | |
749 | 747 | | |
750 | 748 | | |
751 | 749 | | |
| |||
0 commit comments