Commit 81aeb0c
committed
Rollup merge of rust-lang#33854 - petrochenkov:prefvis, r=eddyb
Apply visit_path to import prefixes by default
Overriding `visit_path` is not enough to visit all paths, some import prefixes are not visited and `visit_path_list_item` need to be overridden as well. This PR removes this catch, it should be less error prone this way. Also, the prefix is visited once now, not repeatedly for each path list item.
r? @eddybFile tree
3 files changed
+8
-26
lines changed- src
- librustc_incremental
- librustc/hir
- libsyntax
3 files changed
+8
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
289 | 286 | | |
290 | 287 | | |
291 | 288 | | |
| |||
419 | 416 | | |
420 | 417 | | |
421 | 418 | | |
422 | | - | |
| 419 | + | |
423 | 420 | | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | 421 | | |
429 | 422 | | |
430 | 423 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | 404 | | |
409 | 405 | | |
410 | 406 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
242 | 239 | | |
243 | 240 | | |
244 | 241 | | |
| |||
368 | 365 | | |
369 | 366 | | |
370 | 367 | | |
371 | | - | |
| 368 | + | |
372 | 369 | | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | 370 | | |
378 | 371 | | |
379 | 372 | | |
| |||
0 commit comments