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