fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
2.1 KiB76 linesraw
1- // MIR for `concrete` before DataflowConstProp
2+ // MIR for `concrete` after DataflowConstProp
3  
4  fn concrete() -> () {
5      let mut _0: ();
6      let _1: usize;
7      let mut _2: usize;
8      let mut _4: usize;
9      let mut _6: usize;
10      let mut _8: usize;
11      scope 1 {
12          debug x => _1;
13          let _3: usize;
14          scope 2 {
15              debug y => _3;
16              let _5: usize;
17              scope 3 {
18                  debug z0 => _5;
19                  let _7: usize;
20                  scope 4 {
21                      debug z1 => _7;
22                  }
23              }
24          }
25      }
26  
27      bb0: {
28          StorageLive(_1);
29          StorageLive(_2);
30-         _2 = OffsetOf(Alpha, [0]);
31-         _1 = must_use::<usize>(move _2) -> [return: bb1, unwind unreachable];
32+         _2 = const 4_usize;
33+         _1 = must_use::<usize>(const 4_usize) -> [return: bb1, unwind unreachable];
34      }
35  
36      bb1: {
37          StorageDead(_2);
38          StorageLive(_3);
39          StorageLive(_4);
40-         _4 = OffsetOf(Alpha, [1]);
41-         _3 = must_use::<usize>(move _4) -> [return: bb2, unwind unreachable];
42+         _4 = const 0_usize;
43+         _3 = must_use::<usize>(const 0_usize) -> [return: bb2, unwind unreachable];
44      }
45  
46      bb2: {
47          StorageDead(_4);
48          StorageLive(_5);
49          StorageLive(_6);
50-         _6 = OffsetOf(Alpha, [2, 0]);
51-         _5 = must_use::<usize>(move _6) -> [return: bb3, unwind unreachable];
52+         _6 = const 2_usize;
53+         _5 = must_use::<usize>(const 2_usize) -> [return: bb3, unwind unreachable];
54      }
55  
56      bb3: {
57          StorageDead(_6);
58          StorageLive(_7);
59          StorageLive(_8);
60-         _8 = OffsetOf(Alpha, [2, 1]);
61-         _7 = must_use::<usize>(move _8) -> [return: bb4, unwind unreachable];
62+         _8 = const 3_usize;
63+         _7 = must_use::<usize>(const 3_usize) -> [return: bb4, unwind unreachable];
64      }
65  
66      bb4: {
67          StorageDead(_8);
68          _0 = const ();
69          StorageDead(_7);
70          StorageDead(_5);
71          StorageDead(_3);
72          StorageDead(_1);
73          return;
74      }
75  }
76