2020-05-24 14:37:09 -05:00
|
|
|
- // MIR for `main` before DestinationPropagation
|
|
|
|
+ // MIR for `main` after DestinationPropagation
|
|
|
|
|
|
|
|
fn main() -> () {
|
2022-07-27 13:47:42 -05:00
|
|
|
let mut _0: (); // return place in scope 0 at $DIR/union.rs:+0:11: +0:11
|
|
|
|
let _1: main::Un; // in scope 0 at $DIR/union.rs:+5:9: +5:11
|
|
|
|
let mut _2: u32; // in scope 0 at $DIR/union.rs:+5:23: +5:28
|
2022-04-24 16:34:24 -05:00
|
|
|
let mut _3: u32; // in scope 0 at $DIR/union.rs:+7:10: +7:26
|
2020-05-24 14:37:09 -05:00
|
|
|
scope 1 {
|
2022-07-27 13:47:42 -05:00
|
|
|
debug un => _1; // in scope 1 at $DIR/union.rs:+5:9: +5:11
|
2020-05-24 14:37:09 -05:00
|
|
|
scope 2 {
|
|
|
|
}
|
2020-02-08 13:31:09 -06:00
|
|
|
scope 3 (inlined std::mem::drop::<u32>) { // at $DIR/union.rs:15:5: 15:27
|
2022-04-24 16:34:24 -05:00
|
|
|
debug _x => _3; // in scope 3 at $SRC_DIR/core/src/mem/mod.rs:LL:COL
|
2020-05-24 14:37:09 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2022-07-27 13:47:42 -05:00
|
|
|
StorageLive(_1); // scope 0 at $DIR/union.rs:+5:9: +5:11
|
|
|
|
StorageLive(_2); // scope 0 at $DIR/union.rs:+5:23: +5:28
|
|
|
|
_2 = val() -> bb1; // scope 0 at $DIR/union.rs:+5:23: +5:28
|
2020-05-24 14:37:09 -05:00
|
|
|
// mir::Constant
|
|
|
|
// + span: $DIR/union.rs:13:23: 13:26
|
2022-07-06 09:14:46 -05:00
|
|
|
// + literal: Const { ty: fn() -> u32 {val}, val: Value(<ZST>) }
|
2020-05-24 14:37:09 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2022-07-27 13:47:42 -05:00
|
|
|
StorageDead(_2); // scope 0 at $DIR/union.rs:+5:29: +5:30
|
2022-04-24 16:34:24 -05:00
|
|
|
StorageLive(_3); // scope 1 at $DIR/union.rs:+7:10: +7:26
|
|
|
|
StorageDead(_3); // scope 1 at $DIR/union.rs:+7:26: +7:27
|
2022-07-27 13:47:42 -05:00
|
|
|
StorageDead(_1); // scope 0 at $DIR/union.rs:+8:1: +8:2
|
|
|
|
return; // scope 0 at $DIR/union.rs:+8:2: +8:2
|
2020-05-24 14:37:09 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|