File: offset_of.concrete.DataflowConstProp.panic-unwind.diff

package info (click to toggle)
rustc 1.85.0%2Bdfsg3-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, sid, trixie
  • size: 893,396 kB
  • sloc: xml: 158,127; python: 35,830; javascript: 19,497; cpp: 19,002; sh: 17,245; ansic: 13,127; asm: 4,376; makefile: 1,051; perl: 29; lisp: 29; ruby: 19; sql: 11
file content (44 lines) | stat: -rw-r--r-- 1,118 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
- // MIR for `concrete` before DataflowConstProp
+ // MIR for `concrete` after DataflowConstProp
  
  fn concrete() -> () {
      let mut _0: ();
      let _1: usize;
      scope 1 {
          debug x => _1;
          let _2: usize;
          scope 2 {
              debug y => _2;
              let _3: usize;
              scope 3 {
                  debug z0 => _3;
                  let _4: usize;
                  scope 4 {
                      debug z1 => _4;
                  }
              }
          }
      }
  
      bb0: {
          StorageLive(_1);
-         _1 = OffsetOf(Alpha, [(0, 0)]);
+         _1 = const 4_usize;
          StorageLive(_2);
-         _2 = OffsetOf(Alpha, [(0, 1)]);
+         _2 = const 0_usize;
          StorageLive(_3);
-         _3 = OffsetOf(Alpha, [(0, 2), (0, 0)]);
+         _3 = const 2_usize;
          StorageLive(_4);
-         _4 = OffsetOf(Alpha, [(0, 2), (0, 1)]);
+         _4 = const 3_usize;
          _0 = const ();
          StorageDead(_4);
          StorageDead(_3);
          StorageDead(_2);
          StorageDead(_1);
          return;
      }
  }