2020-04-23 01:39:47 +00:00
|
|
|
- // MIR for `main` before ConstProp
|
|
|
|
+ // MIR for `main` after ConstProp
|
|
|
|
|
|
|
|
fn main() -> () {
|
2023-06-06 13:47:00 +00:00
|
|
|
let mut _0: ();
|
|
|
|
let _1: u32;
|
|
|
|
let _2: ();
|
|
|
|
let mut _3: u32;
|
2020-04-23 01:39:47 +00:00
|
|
|
scope 1 {
|
2023-06-06 13:47:00 +00:00
|
|
|
debug x => _1;
|
2020-04-23 01:39:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 13:47:00 +00:00
|
|
|
StorageLive(_1);
|
|
|
|
_1 = const 1_u32;
|
|
|
|
StorageLive(_2);
|
|
|
|
StorageLive(_3);
|
|
|
|
- _3 = _1;
|
2023-02-07 19:24:21 +00:00
|
|
|
- _2 = consume(move _3) -> [return: bb1, unwind unreachable];
|
2023-06-06 13:47:00 +00:00
|
|
|
+ _3 = const 1_u32;
|
2023-02-07 19:24:21 +00:00
|
|
|
+ _2 = consume(const 1_u32) -> [return: bb1, unwind unreachable];
|
2020-04-23 01:39:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2023-06-06 13:47:00 +00:00
|
|
|
StorageDead(_3);
|
|
|
|
StorageDead(_2);
|
|
|
|
_0 = const ();
|
|
|
|
StorageDead(_1);
|
|
|
|
return;
|
2020-04-23 01:39:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|