]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/const_prop/issue_66971.main.ConstProp.diff
Rollup merge of #107770 - notriddle:notriddle/br2nl, r=GuillaumeGomez
[rust.git] / tests / 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:+0:11: +0:11
6       let _1: ();                          // in scope 0 at $DIR/issue_66971.rs:+1:5: +1:23
7       let mut _2: ((), u8, u8);            // in scope 0 at $DIR/issue_66971.rs:+1:12: +1:22
8       let mut _3: ();                      // in scope 0 at $DIR/issue_66971.rs:+1:13: +1:15
9   
10       bb0: {
11           StorageLive(_1);                 // scope 0 at $DIR/issue_66971.rs:+1:5: +1:23
12           StorageLive(_2);                 // scope 0 at $DIR/issue_66971.rs:+1:12: +1:22
13           StorageLive(_3);                 // scope 0 at $DIR/issue_66971.rs:+1:13: +1:15
14           _2 = (move _3, const 0_u8, const 0_u8); // scope 0 at $DIR/issue_66971.rs:+1:12: +1:22
15           StorageDead(_3);                 // scope 0 at $DIR/issue_66971.rs:+1:21: +1:22
16           _1 = encode(move _2) -> bb1;     // scope 0 at $DIR/issue_66971.rs:+1:5: +1:23
17                                            // mir::Constant
18                                            // + span: $DIR/issue_66971.rs:17:5: 17:11
19                                            // + literal: Const { ty: fn(((), u8, u8)) {encode}, val: Value(<ZST>) }
20       }
21   
22       bb1: {
23           StorageDead(_2);                 // scope 0 at $DIR/issue_66971.rs:+1:22: +1:23
24           StorageDead(_1);                 // scope 0 at $DIR/issue_66971.rs:+1:23: +1:24
25           return;                          // scope 0 at $DIR/issue_66971.rs:+2:2: +2:2
26       }
27   }
28