]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/deaggregator_test.bar.Deaggregator.diff
Rollup merge of #104036 - compiler-errors:option-sugg, r=petrochenkov
[rust.git] / src / test / mir-opt / deaggregator_test.bar.Deaggregator.diff
1 - // MIR for `bar` before Deaggregator
2 + // MIR for `bar` after Deaggregator
3   
4   fn bar(_1: usize) -> Baz {
5       debug a => _1;                       // in scope 0 at $DIR/deaggregator_test.rs:+0:8: +0:9
6       let mut _0: Baz;                     // return place in scope 0 at $DIR/deaggregator_test.rs:+0:21: +0:24
7       let mut _2: usize;                   // in scope 0 at $DIR/deaggregator_test.rs:+1:14: +1:15
8   
9       bb0: {
10           StorageLive(_2);                 // scope 0 at $DIR/deaggregator_test.rs:+1:14: +1:15
11           _2 = _1;                         // scope 0 at $DIR/deaggregator_test.rs:+1:14: +1:15
12 -         _0 = Baz { x: move _2, y: const 0f32, z: const false }; // scope 0 at $DIR/deaggregator_test.rs:+1:5: +1:35
13 +         Deinit(_0);                      // scope 0 at $DIR/deaggregator_test.rs:+1:5: +1:35
14 +         (_0.0: usize) = move _2;         // scope 0 at $DIR/deaggregator_test.rs:+1:5: +1:35
15 +         (_0.1: f32) = const 0f32;        // scope 0 at $DIR/deaggregator_test.rs:+1:5: +1:35
16 +         (_0.2: bool) = const false;      // scope 0 at $DIR/deaggregator_test.rs:+1:5: +1:35
17           StorageDead(_2);                 // scope 0 at $DIR/deaggregator_test.rs:+1:34: +1:35
18           return;                          // scope 0 at $DIR/deaggregator_test.rs:+2:2: +2:2
19       }
20   }
21