File: remove_storage_markers.main.RemoveStorageMarkers.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 (92 lines) | stat: -rw-r--r-- 2,315 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
- // MIR for `main` before RemoveStorageMarkers
+ // MIR for `main` after RemoveStorageMarkers
  
  fn main() -> () {
      let mut _0: ();
      let mut _1: i32;
      let mut _2: std::ops::Range<i32>;
      let mut _3: std::ops::Range<i32>;
      let mut _5: ();
      let _6: ();
      let mut _7: std::option::Option<i32>;
      let mut _8: &mut std::ops::Range<i32>;
      let mut _9: &mut std::ops::Range<i32>;
      let mut _10: isize;
      let mut _11: !;
      let mut _13: i32;
      scope 1 {
          debug sum => _1;
          let mut _4: std::ops::Range<i32>;
          scope 2 {
              debug iter => _4;
              let _12: i32;
              scope 3 {
                  debug i => _12;
              }
          }
      }
  
      bb0: {
-         StorageLive(_1);
          _1 = const 0_i32;
-         StorageLive(_2);
-         StorageLive(_3);
          _3 = std::ops::Range::<i32> { start: const 0_i32, end: const 10_i32 };
          _2 = <std::ops::Range<i32> as IntoIterator>::into_iter(move _3) -> [return: bb1, unwind continue];
      }
  
      bb1: {
-         StorageDead(_3);
-         StorageLive(_4);
          _4 = move _2;
          goto -> bb2;
      }
  
      bb2: {
-         StorageLive(_6);
-         StorageLive(_7);
-         StorageLive(_8);
-         StorageLive(_9);
          _9 = &mut _4;
          _8 = &mut (*_9);
          _7 = <std::ops::Range<i32> as Iterator>::next(move _8) -> [return: bb3, unwind continue];
      }
  
      bb3: {
-         StorageDead(_8);
          _10 = discriminant(_7);
          switchInt(move _10) -> [0: bb6, 1: bb5, otherwise: bb4];
      }
  
      bb4: {
          unreachable;
      }
  
      bb5: {
-         StorageLive(_12);
          _12 = copy ((_7 as Some).0: i32);
-         StorageLive(_13);
          _13 = copy _12;
          _1 = Add(copy _1, move _13);
-         StorageDead(_13);
          _6 = const ();
-         StorageDead(_12);
-         StorageDead(_9);
-         StorageDead(_7);
-         StorageDead(_6);
          _5 = const ();
          goto -> bb2;
      }
  
      bb6: {
          _0 = const ();
-         StorageDead(_9);
-         StorageDead(_7);
-         StorageDead(_6);
-         StorageDead(_4);
-         StorageDead(_2);
-         StorageDead(_1);
          return;
      }
  }