Commit 5866156
authored
Rollup merge of rust-lang#104383 - WaffleLapkin:rustc_undiagnostic_item, r=compiler-errors
Remove unused symbols and diagnostic items
As the title suggests, this removes unused symbols from `sym::` and `#[rustc_diagnostic_item]` annotations that weren't mentioned anywhere.
Originally I tried to use grep, to find symbols and item names that are never mentioned via `sym::name`, however this produced a lot of false positives (?), for example clippy matching on `Symbol::as_str` or macros "implicitly" adding `sym::`. I ended up fixing all these false positives (?) by hand, but tbh I'm not sure if it was worth it...File tree
5 files changed
+0
-22
lines changed- core/src
- fmt
- macros
- ops
- std/src/net
5 files changed
+0
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1054 | 1054 | | |
1055 | 1055 | | |
1056 | 1056 | | |
1057 | | - | |
1058 | 1057 | | |
1059 | 1058 | | |
1060 | 1059 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
341 | | - | |
342 | 341 | | |
343 | 342 | | |
344 | 343 | | |
| |||
820 | 819 | | |
821 | 820 | | |
822 | 821 | | |
823 | | - | |
824 | 822 | | |
825 | 823 | | |
826 | 824 | | |
| |||
944 | 942 | | |
945 | 943 | | |
946 | 944 | | |
947 | | - | |
948 | 945 | | |
949 | 946 | | |
950 | 947 | | |
| |||
973 | 970 | | |
974 | 971 | | |
975 | 972 | | |
976 | | - | |
977 | 973 | | |
978 | 974 | | |
979 | 975 | | |
| |||
1058 | 1054 | | |
1059 | 1055 | | |
1060 | 1056 | | |
1061 | | - | |
1062 | 1057 | | |
1063 | 1058 | | |
1064 | 1059 | | |
| |||
1084 | 1079 | | |
1085 | 1080 | | |
1086 | 1081 | | |
1087 | | - | |
1088 | 1082 | | |
1089 | 1083 | | |
1090 | 1084 | | |
| |||
1124 | 1118 | | |
1125 | 1119 | | |
1126 | 1120 | | |
1127 | | - | |
1128 | 1121 | | |
1129 | 1122 | | |
1130 | 1123 | | |
| |||
1150 | 1143 | | |
1151 | 1144 | | |
1152 | 1145 | | |
1153 | | - | |
1154 | 1146 | | |
1155 | 1147 | | |
1156 | 1148 | | |
| |||
1175 | 1167 | | |
1176 | 1168 | | |
1177 | 1169 | | |
1178 | | - | |
1179 | 1170 | | |
1180 | 1171 | | |
1181 | 1172 | | |
| |||
1282 | 1273 | | |
1283 | 1274 | | |
1284 | 1275 | | |
1285 | | - | |
1286 | 1276 | | |
1287 | 1277 | | |
1288 | 1278 | | |
| |||
1316 | 1306 | | |
1317 | 1307 | | |
1318 | 1308 | | |
1319 | | - | |
1320 | 1309 | | |
1321 | 1310 | | |
1322 | 1311 | | |
| |||
1367 | 1356 | | |
1368 | 1357 | | |
1369 | 1358 | | |
1370 | | - | |
1371 | 1359 | | |
1372 | 1360 | | |
1373 | 1361 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | 60 | | |
62 | 61 | | |
63 | 62 | | |
| |||
138 | 137 | | |
139 | 138 | | |
140 | 139 | | |
141 | | - | |
142 | 140 | | |
143 | 141 | | |
144 | 142 | | |
| |||
227 | 225 | | |
228 | 226 | | |
229 | 227 | | |
230 | | - | |
231 | 228 | | |
232 | 229 | | |
233 | 230 | | |
| |||
316 | 313 | | |
317 | 314 | | |
318 | 315 | | |
319 | | - | |
320 | 316 | | |
321 | 317 | | |
322 | 318 | | |
| |||
397 | 393 | | |
398 | 394 | | |
399 | 395 | | |
400 | | - | |
401 | 396 | | |
402 | 397 | | |
403 | 398 | | |
| |||
483 | 478 | | |
484 | 479 | | |
485 | 480 | | |
486 | | - | |
487 | 481 | | |
488 | 482 | | |
489 | 483 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | 83 | | |
85 | 84 | | |
86 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | 76 | | |
78 | 77 | | |
79 | 78 | | |
| |||
156 | 155 | | |
157 | 156 | | |
158 | 157 | | |
159 | | - | |
160 | 158 | | |
161 | 159 | | |
162 | 160 | | |
| |||
0 commit comments