]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/const_prop/issue_66971.main.ConstProp.diff
Unconfuse Unpin docs a bit
[rust.git] / src / test / mir-opt / const_prop / issue_66971.main.ConstProp.diff
1 - // MIR for `main` before ConstProp
2 + // MIR for `main` after ConstProp
3   
4   fn main() -> () {
5       let mut _0: ();                      // return place in scope 0 at $DIR/issue-66971.rs:15:11: 15:11
6       let _1: ();                          // in scope 0 at $DIR/issue-66971.rs:16:5: 16:23
7       let mut _2: ((), u8, u8);            // in scope 0 at $DIR/issue-66971.rs:16:12: 16:22
8       let mut _3: ();                      // in scope 0 at $DIR/issue-66971.rs:16:13: 16:15
9   
10       bb0: {
11           StorageLive(_1);                 // scope 0 at $DIR/issue-66971.rs:16:5: 16:23
12           StorageLive(_2);                 // scope 0 at $DIR/issue-66971.rs:16:12: 16:22
13           StorageLive(_3);                 // scope 0 at $DIR/issue-66971.rs:16:13: 16:15
14 -         (_2.0: ()) = move _3;            // scope 0 at $DIR/issue-66971.rs:16:12: 16:22
15 +         (_2.0: ()) = const ();           // scope 0 at $DIR/issue-66971.rs:16:12: 16:22
16           (_2.1: u8) = const 0_u8;         // scope 0 at $DIR/issue-66971.rs:16:12: 16:22
17           (_2.2: u8) = const 0_u8;         // scope 0 at $DIR/issue-66971.rs:16:12: 16:22
18           StorageDead(_3);                 // scope 0 at $DIR/issue-66971.rs:16:21: 16:22
19           _1 = const encode(move _2) -> bb1; // scope 0 at $DIR/issue-66971.rs:16:5: 16:23
20                                            // mir::Constant
21                                            // + span: $DIR/issue-66971.rs:16:5: 16:11
22                                            // + literal: Const { ty: fn(((), u8, u8)) {encode}, val: Value(Scalar(<ZST>)) }
23       }
24   
25       bb1: {
26           StorageDead(_2);                 // scope 0 at $DIR/issue-66971.rs:16:22: 16:23
27           StorageDead(_1);                 // scope 0 at $DIR/issue-66971.rs:16:23: 16:24
28           _0 = const ();                   // scope 0 at $DIR/issue-66971.rs:15:11: 17:2
29           return;                          // scope 0 at $DIR/issue-66971.rs:17:2: 17:2
30       }
31   }
32