]> git.proxmox.com Git - rustc.git/blob - src/test/mir-opt/const_prop/issue_67019.main.ConstProp.diff
New upstream version 1.54.0+dfsg1
[rustc.git] / src / test / mir-opt / const_prop / issue_67019.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-67019.rs:10:11: 10:11
6 let _1: (); // in scope 0 at $DIR/issue-67019.rs:11:5: 11:20
7 let mut _2: ((u8, u8),); // in scope 0 at $DIR/issue-67019.rs:11:10: 11:19
8 let mut _3: (u8, u8); // in scope 0 at $DIR/issue-67019.rs:11:11: 11:17
9
10 bb0: {
11 StorageLive(_1); // scope 0 at $DIR/issue-67019.rs:11:5: 11:20
12 StorageLive(_2); // scope 0 at $DIR/issue-67019.rs:11:10: 11:19
13 StorageLive(_3); // scope 0 at $DIR/issue-67019.rs:11:11: 11:17
14 (_3.0: u8) = const 1_u8; // scope 0 at $DIR/issue-67019.rs:11:11: 11:17
15 (_3.1: u8) = const 2_u8; // scope 0 at $DIR/issue-67019.rs:11:11: 11:17
16 - (_2.0: (u8, u8)) = move _3; // scope 0 at $DIR/issue-67019.rs:11:10: 11:19
17 + (_2.0: (u8, u8)) = const (1_u8, 2_u8); // scope 0 at $DIR/issue-67019.rs:11:10: 11:19
18 + // mir::Constant
19 + // + span: $DIR/issue-67019.rs:11:10: 11:19
20 + // + literal: Const { ty: (u8, u8), val: Value(ByRef { alloc: Allocation { bytes: [1, 2], relocations: Relocations(SortedMap { data: [] }), init_mask: InitMask { blocks: [3], len: Size { raw: 2 } }, align: Align { pow2: 0 }, mutability: Not, extra: () }, offset: Size { raw: 0 } }) }
21 StorageDead(_3); // scope 0 at $DIR/issue-67019.rs:11:18: 11:19
22 _1 = test(move _2) -> bb1; // scope 0 at $DIR/issue-67019.rs:11:5: 11:20
23 // mir::Constant
24 // + span: $DIR/issue-67019.rs:11:5: 11:9
25 // + literal: Const { ty: fn(((u8, u8),)) {test}, val: Value(Scalar(<ZST>)) }
26 }
27
28 bb1: {
29 StorageDead(_2); // scope 0 at $DIR/issue-67019.rs:11:19: 11:20
30 StorageDead(_1); // scope 0 at $DIR/issue-67019.rs:11:20: 11:21
31 nop; // scope 0 at $DIR/issue-67019.rs:10:11: 12:2
32 return; // scope 0 at $DIR/issue-67019.rs:12:2: 12:2
33 }
34 }
35