Commit 4bd6f7f
authored
Rollup merge of rust-lang#108786 - saethlin:free-regions-check, r=oli-obk
Check for free regions in MIR validation
This turns rust-lang#108720 into a MIR validation failure that will reproduce without debug-assertions enabled.
```
error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:296 ~ futures_util[3805]::future::future::remote_handle::{impl#3}::poll), const_param_did: None }) (after pass ScalarReplacementOfAggregates) at bb0[0]:
Free regions in optimized runtime-post-cleanup MIR
--> /home/ben/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-util-0.3.26/src/future/future/remote_handle.rs:96:13
|
96 | let this = self.project();
| ^^^^
```File tree
2 files changed
+11
-6
lines changed- compiler
- rustc_const_eval/src/transform
- rustc_mir_transform/src
2 files changed
+11
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
75 | 86 | | |
76 | 87 | | |
77 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
419 | | - | |
420 | | - | |
421 | 419 | | |
422 | 420 | | |
423 | 421 | | |
| |||
626 | 624 | | |
627 | 625 | | |
628 | 626 | | |
629 | | - | |
630 | | - | |
631 | 627 | | |
632 | 628 | | |
633 | 629 | | |
| |||
651 | 647 | | |
652 | 648 | | |
653 | 649 | | |
654 | | - | |
655 | | - | |
656 | 650 | | |
657 | 651 | | |
0 commit comments