Commit 09c7a9b
authored
Rollup merge of rust-lang#67796 - Aaron1011:fix/mir-inline-proj, r=wesleywiser
Ensure that we process projections during MIR inlining
Fixes rust-lang#67710
Previously, we were not calling `super_place`, which resulted in us
failing to update any local references that occur in
ProjectionElem::Index. This caused the post-inlining MIR to contain a
reference to a local ID from the inlined callee, leading to an ICE
due to a type mismatch.File tree
2 files changed
+21
-8
lines changed- src
- librustc_mir/transform
- test/ui/mir
2 files changed
+21
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
671 | 671 | | |
672 | 672 | | |
673 | 673 | | |
674 | | - | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
| 674 | + | |
680 | 675 | | |
681 | 676 | | |
682 | 677 | | |
| |||
689 | 684 | | |
690 | 685 | | |
691 | 686 | | |
692 | | - | |
693 | | - | |
694 | 687 | | |
695 | 688 | | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
696 | 692 | | |
697 | 693 | | |
698 | 694 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
0 commit comments