]> git.proxmox.com Git - rustc.git/blob - src/test/mir-opt/const_prop/const_prop_fails_gracefully.main.ConstProp.diff
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / mir-opt / const_prop / const_prop_fails_gracefully.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/const_prop_fails_gracefully.rs:5:11: 5:11
6 let _1: usize; // in scope 0 at $DIR/const_prop_fails_gracefully.rs:7:9: 7:10
7 let mut _2: *const i32; // in scope 0 at $DIR/const_prop_fails_gracefully.rs:7:13: 7:30
8 let _3: &i32; // in scope 0 at $DIR/const_prop_fails_gracefully.rs:7:13: 7:16
9 let _4: (); // in scope 0 at $DIR/const_prop_fails_gracefully.rs:8:5: 8:12
10 let mut _5: usize; // in scope 0 at $DIR/const_prop_fails_gracefully.rs:8:10: 8:11
11 scope 1 {
12 debug x => _1; // in scope 1 at $DIR/const_prop_fails_gracefully.rs:7:9: 7:10
13 }
14
15 bb0: {
16 StorageLive(_1); // scope 0 at $DIR/const_prop_fails_gracefully.rs:7:9: 7:10
17 StorageLive(_2); // scope 0 at $DIR/const_prop_fails_gracefully.rs:7:13: 7:30
18 StorageLive(_3); // scope 0 at $DIR/const_prop_fails_gracefully.rs:7:13: 7:16
19 _3 = const FOO; // scope 0 at $DIR/const_prop_fails_gracefully.rs:7:13: 7:16
20 // ty::Const
21 // + ty: &i32
22 // + val: Unevaluated(WithOptConstParam { did: DefId(0:5 ~ const_prop_fails_gracefully[317d]::main::FOO), const_param_did: None }, [], None)
23 // mir::Constant
24 // + span: $DIR/const_prop_fails_gracefully.rs:7:13: 7:16
25 // + literal: Const { ty: &i32, val: Unevaluated(WithOptConstParam { did: DefId(0:5 ~ const_prop_fails_gracefully[317d]::main::FOO), const_param_did: None }, [], None) }
26 _2 = &raw const (*_3); // scope 0 at $DIR/const_prop_fails_gracefully.rs:7:13: 7:16
27 _1 = move _2 as usize (Misc); // scope 0 at $DIR/const_prop_fails_gracefully.rs:7:13: 7:39
28 StorageDead(_2); // scope 0 at $DIR/const_prop_fails_gracefully.rs:7:38: 7:39
29 StorageDead(_3); // scope 0 at $DIR/const_prop_fails_gracefully.rs:7:39: 7:40
30 StorageLive(_4); // scope 1 at $DIR/const_prop_fails_gracefully.rs:8:5: 8:12
31 StorageLive(_5); // scope 1 at $DIR/const_prop_fails_gracefully.rs:8:10: 8:11
32 _5 = _1; // scope 1 at $DIR/const_prop_fails_gracefully.rs:8:10: 8:11
33 _4 = read(move _5) -> bb1; // scope 1 at $DIR/const_prop_fails_gracefully.rs:8:5: 8:12
34 // mir::Constant
35 // + span: $DIR/const_prop_fails_gracefully.rs:8:5: 8:9
36 // + literal: Const { ty: fn(usize) {read}, val: Value(Scalar(<ZST>)) }
37 }
38
39 bb1: {
40 StorageDead(_5); // scope 1 at $DIR/const_prop_fails_gracefully.rs:8:11: 8:12
41 StorageDead(_4); // scope 1 at $DIR/const_prop_fails_gracefully.rs:8:12: 8:13
42 _0 = const (); // scope 0 at $DIR/const_prop_fails_gracefully.rs:5:11: 9:2
43 StorageDead(_1); // scope 0 at $DIR/const_prop_fails_gracefully.rs:9:1: 9:2
44 return; // scope 0 at $DIR/const_prop_fails_gracefully.rs:9:2: 9:2
45 }
46 }
47