File: issue_76432.test.SimplifyComparisonIntegral.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 (53 lines) | stat: -rw-r--r-- 1,251 bytes parent folder | download | duplicates (3)
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
45
46
47
48
49
50
51
52
53
- // MIR for `test` before SimplifyComparisonIntegral
+ // MIR for `test` after SimplifyComparisonIntegral
  
  fn test(_1: T) -> () {
      debug x => _1;
      let mut _0: ();
      let _2: &[T];
      let _3: &[T; 3];
      let _4: [T; 3];
      let mut _5: usize;
      let mut _6: bool;
      let mut _10: !;
      scope 1 {
          debug v => _2;
          let _7: &T;
          let _8: &T;
          let _9: &T;
          scope 2 {
              debug v1 => _7;
              debug v2 => _8;
              debug v3 => _9;
          }
      }
  
      bb0: {
          StorageLive(_4);
          _4 = [copy _1, copy _1, copy _1];
          _3 = &_4;
          _2 = copy _3 as &[T] (PointerCoercion(Unsize, Implicit));
          nop;
          nop;
          goto -> bb2;
      }
  
      bb1: {
          _10 = core::panicking::panic(const "internal error: entered unreachable code") -> unwind continue;
      }
  
      bb2: {
          StorageLive(_7);
          _7 = &(*_2)[0 of 3];
          StorageLive(_8);
          _8 = &(*_2)[1 of 3];
          StorageLive(_9);
          _9 = &(*_2)[2 of 3];
          StorageDead(_9);
          StorageDead(_8);
          StorageDead(_7);
          StorageDead(_4);
          return;
      }
  }