]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/simplify_locals.d1.SimplifyLocals.diff
Rollup merge of #101772 - est31:replace_placeholder_diagnostics, r=jackh726
[rust.git] / src / test / mir-opt / simplify_locals.d1.SimplifyLocals.diff
1 - // MIR for `d1` before SimplifyLocals
2 + // MIR for `d1` after SimplifyLocals
3   
4   fn d1() -> () {
5       let mut _0: ();                      // return place in scope 0 at $DIR/simplify-locals.rs:+0:9: +0:9
6 -     let mut _1: E;                       // in scope 0 at $DIR/simplify-locals.rs:+2:13: +2:17
7       scope 1 {
8       }
9   
10       bb0: {
11 -         StorageLive(_1);                 // scope 0 at $DIR/simplify-locals.rs:+2:13: +2:17
12 -         Deinit(_1);                      // scope 0 at $DIR/simplify-locals.rs:+2:13: +2:17
13 -         discriminant(_1) = 0;            // scope 0 at $DIR/simplify-locals.rs:+2:13: +2:17
14 -         StorageDead(_1);                 // scope 0 at $DIR/simplify-locals.rs:+2:17: +2:18
15           _0 = const ();                   // scope 0 at $DIR/simplify-locals.rs:+0:9: +3:2
16           return;                          // scope 0 at $DIR/simplify-locals.rs:+3:2: +3:2
17       }
18   }
19