]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/dest-prop/union.main.DestinationPropagation.diff
Rollup merge of #106321 - compiler-errors:delayed-bug-backtrace, r=Nilstrieb
[rust.git] / tests / mir-opt / dest-prop / union.main.DestinationPropagation.diff
1 - // MIR for `main` before DestinationPropagation
2 + // MIR for `main` after DestinationPropagation
3   
4   fn main() -> () {
5       let mut _0: ();                      // return place in scope 0 at $DIR/union.rs:+0:11: +0:11
6       let _1: main::Un;                    // in scope 0 at $DIR/union.rs:+5:9: +5:11
7       let mut _2: u32;                     // in scope 0 at $DIR/union.rs:+5:23: +5:28
8       let mut _3: u32;                     // in scope 0 at $DIR/union.rs:+7:10: +7:26
9       scope 1 {
10           debug un => _1;                  // in scope 1 at $DIR/union.rs:+5:9: +5:11
11           scope 2 {
12           }
13           scope 3 (inlined std::mem::drop::<u32>) { // at $DIR/union.rs:15:5: 15:27
14               debug _x => _3;              // in scope 3 at $SRC_DIR/core/src/mem/mod.rs:LL:COL
15           }
16       }
17   
18       bb0: {
19           StorageLive(_1);                 // scope 0 at $DIR/union.rs:+5:9: +5:11
20           StorageLive(_2);                 // scope 0 at $DIR/union.rs:+5:23: +5:28
21           _2 = val() -> bb1;               // scope 0 at $DIR/union.rs:+5:23: +5:28
22                                            // mir::Constant
23                                            // + span: $DIR/union.rs:13:23: 13:26
24                                            // + literal: Const { ty: fn() -> u32 {val}, val: Value(<ZST>) }
25       }
26   
27       bb1: {
28           StorageDead(_2);                 // scope 0 at $DIR/union.rs:+5:29: +5:30
29           StorageLive(_3);                 // scope 1 at $DIR/union.rs:+7:10: +7:26
30           StorageDead(_3);                 // scope 1 at $DIR/union.rs:+7:26: +7:27
31           StorageDead(_1);                 // scope 0 at $DIR/union.rs:+8:1: +8:2
32           return;                          // scope 0 at $DIR/union.rs:+8:2: +8:2
33       }
34   }
35