Skip to content

Commit 732bf54

Browse files
authored
Rollup merge of #125616 - RalfJung:mir-validate-downcast-projection, r=compiler-errors
MIR validation: ensure that downcast projection is followed by field projection Cc rust-lang/rust#120369
2 parents 2557b81 + 376b6b9 commit 732bf54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/panic/mir-validation.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
thread 'rustc' panicked at compiler/rustc_mir_transform/src/validate.rs:LL:CC:
22
broken MIR in Item(DefId) (after phase change to runtime-optimized) at bb0[1]:
3-
(*(_2.0: *mut i32)), has deref at the wrong place
3+
place (*(_2.0: *mut i32)) has deref as a later projection (it is only permitted as the first projection)
44
stack backtrace:
55

66
error: the compiler unexpectedly panicked. this is a bug.

0 commit comments

Comments
 (0)