Auto merge of #125918 - oli-obk:const_block_ice, r=compiler-errors
Revert: create const block bodies in typeck via query feeding as per the discussion in https://github.com/rust-lang/rust/pull/125806#discussion_r1622563948 It was a mistake to try to shoehorn const blocks and some specific anon consts into the same box and feed them during typeck. It turned out not simplifying anything (my hope was that we could feed `type_of` to start avoiding the huge HIR matcher, but that didn't work out), but instead making a few things more fragile. reverts the const-block-specific parts of https://github.com/rust-lang/rust/pull/124650 `@bors` rollup=never had a small perf impact previously fixes https://github.com/rust-lang/rust/issues/125846 r? `@compiler-errors`
This commit is contained in:
commit
1be24d70ce
44 changed files with 211 additions and 189 deletions
|
@ -206,7 +206,12 @@ fn _11() {
|
|||
let _ = ();
|
||||
()
|
||||
};
|
||||
let const {} = #[rustc_dummy] const {};
|
||||
let const {
|
||||
#![rustc_dummy]
|
||||
} =
|
||||
#[rustc_dummy] const {
|
||||
#![rustc_dummy]
|
||||
};
|
||||
let mut x = 0;
|
||||
let _ = #[rustc_dummy] x = 15;
|
||||
let _ = #[rustc_dummy] x += 15;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue