mirror of https://github.com/rust-lang/rust
32 lines
659 B
Diff
32 lines
659 B
Diff
- // MIR for `r` before SimplifyLocals-before-const-prop
|
|
+ // MIR for `r` after SimplifyLocals-before-const-prop
|
|
|
|
fn r() -> () {
|
|
let mut _0: ();
|
|
let mut _1: i32;
|
|
- let mut _2: &i32;
|
|
- let mut _3: &mut i32;
|
|
scope 1 {
|
|
debug a => _1;
|
|
scope 2 {
|
|
scope 3 {
|
|
}
|
|
}
|
|
}
|
|
|
|
bb0: {
|
|
StorageLive(_1);
|
|
_1 = const 1_i32;
|
|
- StorageLive(_2);
|
|
- _2 = &_1;
|
|
- StorageDead(_2);
|
|
- StorageLive(_3);
|
|
- _3 = &mut _1;
|
|
- StorageDead(_3);
|
|
_0 = const ();
|
|
StorageDead(_1);
|
|
return;
|
|
}
|
|
}
|
|
|