Commit 093b9d5
committed
Auto merge of rust-lang#116533 - cjgillot:skip-trivial-mir, r=oli-obk
Do not run optimizations on trivial MIR.
Fixes rust-lang#116513
The bug was introduced in rust-lang#110728, which put the check too early in the query chain.
cc `@oli-obk` `@ouz-a`File tree
2 files changed
+10
-1
lines changed- compiler/rustc_mir_transform/src
- tests/ui/consts
2 files changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
613 | 613 | | |
614 | 614 | | |
615 | 615 | | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
616 | 625 | | |
617 | 626 | | |
618 | 627 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
0 commit comments