2022-12-04 19:20:55 +00:00
|
|
|
- // MIR for `r` before SimplifyLocals-before-const-prop
|
|
|
|
+ // MIR for `r` after SimplifyLocals-before-const-prop
|
2020-10-26 00:00:00 +00:00
|
|
|
|
|
|
|
fn r() -> () {
|
2023-06-06 13:47:00 +00:00
|
|
|
let mut _0: ();
|
|
|
|
let mut _1: i32;
|
|
|
|
- let mut _2: &i32;
|
|
|
|
- let mut _3: &mut i32;
|
2020-10-26 00:00:00 +00:00
|
|
|
scope 1 {
|
2023-06-06 13:47:00 +00:00
|
|
|
debug a => _1;
|
2020-10-26 00:00:00 +00:00
|
|
|
scope 2 {
|
|
|
|
scope 3 {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 13:47:00 +00:00
|
|
|
StorageLive(_1);
|
|
|
|
_1 = const 1_i32;
|
|
|
|
- StorageLive(_2);
|
|
|
|
- _2 = &_1;
|
|
|
|
- StorageDead(_2);
|
|
|
|
- StorageLive(_3);
|
|
|
|
- _3 = &mut _1;
|
|
|
|
- StorageDead(_3);
|
|
|
|
_0 = const ();
|
|
|
|
StorageDead(_1);
|
|
|
|
return;
|
2020-10-26 00:00:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|