Files
rust/tests/mir-opt/pre-codegen/deref_nested_borrows.src.runtime-optimized.after.panic-abort.mir
T
Zalathar 58f8739d55 Migrate mir-opt tests from PreCodegen to runtime-optimized
MIR dumped before/after the dummy `PreCodegen` pass should be identical to MIR
dumped after the phase transition to `runtime-optimized`.
2026-05-13 15:40:23 +10:00

32 lines
615 B
Rust

// MIR for `src` after runtime-optimized
fn src(_1: &&u8) -> bool {
debug x => _1;
let mut _0: bool;
let mut _2: &u8;
let _3: u8;
let _4: ();
let mut _5: &u8;
let mut _6: u8;
scope 1 {
debug y => _3;
}
bb0: {
StorageLive(_3);
_2 = no_retag copy (*_1);
_3 = copy (*_2);
_4 = unknown() -> [return: bb1, unwind unreachable];
}
bb1: {
StorageLive(_6);
_5 = no_retag copy (*_1);
_6 = copy (*_5);
_0 = Eq(move _6, copy _3);
StorageDead(_6);
StorageDead(_3);
return;
}
}