]> git.proxmox.com Git - rustc.git/blob - src/test/mir-opt/simplify_locals.t1.SimplifyLocals.diff
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / mir-opt / simplify_locals.t1.SimplifyLocals.diff
1 - // MIR for `t1` before SimplifyLocals
2 + // MIR for `t1` after SimplifyLocals
3
4 fn t1() -> () {
5 let mut _0: (); // return place in scope 0 at $DIR/simplify-locals.rs:42:9: 42:9
6 - let _1: u32; // in scope 0 at $DIR/simplify-locals.rs:44:14: 44:15
7 - let mut _2: *mut u32; // in scope 0 at $DIR/simplify-locals.rs:44:14: 44:15
8 scope 1 {
9 }
10
11 bb0: {
12 - StorageLive(_1); // scope 0 at $DIR/simplify-locals.rs:44:5: 44:17
13 - StorageLive(_2); // scope 1 at $DIR/simplify-locals.rs:44:14: 44:15
14 - _2 = &/*tls*/ mut X; // scope 1 at $DIR/simplify-locals.rs:44:14: 44:15
15 - _1 = (*_2); // scope 1 at $DIR/simplify-locals.rs:44:14: 44:15
16 - StorageDead(_2); // scope 0 at $DIR/simplify-locals.rs:44:17: 44:18
17 - StorageDead(_1); // scope 0 at $DIR/simplify-locals.rs:44:17: 44:18
18 - _0 = const (); // scope 0 at $DIR/simplify-locals.rs:42:9: 45:2
19 return; // scope 0 at $DIR/simplify-locals.rs:45:2: 45:2
20 }
21 }
22