Commit dcf8ef2
committed
Auto merge of #31321 - jseyfried:cleanup, r=nrc
The first commit improves detection of unused imports -- it should have been part of #30325. Right now, the unused import in the changed test would not be reported.
The rest of the commits are miscellaneous, independent clean-ups in resolve that I didn't think warranted individual PRs.
r? @nrcFile tree
11 files changed
+128
-290
lines changed- src
- librustc_lint
- librustc_resolve
- librustc_trans/trans/debuginfo
- librustc_typeck/check
- method
- librustc/middle
- test/compile-fail
11 files changed
+128
-290
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
160 | 149 | | |
161 | 150 | | |
| 151 | + | |
162 | 152 | | |
163 | 153 | | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
| 154 | + | |
| 155 | + | |
168 | 156 | | |
169 | 157 | | |
170 | 158 | | |
| |||
309 | 297 | | |
310 | 298 | | |
311 | 299 | | |
312 | | - | |
| 300 | + | |
313 | 301 | | |
314 | 302 | | |
315 | 303 | | |
| |||
365 | 353 | | |
366 | 354 | | |
367 | 355 | | |
368 | | - | |
| 356 | + | |
369 | 357 | | |
370 | 358 | | |
371 | 359 | | |
| |||
421 | 409 | | |
422 | 410 | | |
423 | 411 | | |
424 | | - | |
| 412 | + | |
425 | 413 | | |
426 | 414 | | |
427 | 415 | | |
| |||
0 commit comments