Commit 825f8ed
committed
Auto merge of rust-lang#103530 - cjgillot:hir-lifetimes-direct, r=estebank
Resolve lifetimes independently for each item-like.
Now that the heavy-lifting is done on the AST and during lowering, we do not need to perform HIR lifetime resolution on a full item at once. Instead, we can treat each item-like independently, and look at `generics_of` the parent exceptionally for associated items.File tree
20 files changed
+224
-384
lines changed- compiler
- rustc_hir_analysis/src
- check
- collect
- rustc_lint/src
- rustc_middle/src
- hir/map
- query
- src/test/ui
- associated-type-bounds
- async-await/issues
- borrowck
- const-generics/min_const_generics
- impl-trait
- issues
20 files changed
+224
-384
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
644 | 644 | | |
645 | 645 | | |
646 | 646 | | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | 647 | | |
654 | 648 | | |
655 | 649 | | |
656 | 650 | | |
657 | 651 | | |
658 | 652 | | |
659 | 653 | | |
| 654 | + | |
660 | 655 | | |
661 | | - | |
662 | | - | |
663 | | - | |
664 | | - | |
| 656 | + | |
| 657 | + | |
665 | 658 | | |
666 | 659 | | |
667 | 660 | | |
668 | | - | |
669 | | - | |
670 | | - | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
679 | 671 | | |
680 | 672 | | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
681 | 680 | | |
682 | 681 | | |
683 | 682 | | |
| |||
0 commit comments