File: tail_call_drops.f.ElaborateDrops.panic-abort.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 (108 lines) | stat: -rw-r--r-- 2,483 bytes parent folder | download | duplicates (2)
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
- // MIR for `f` before ElaborateDrops
+ // MIR for `f` after ElaborateDrops
  
  fn f() -> () {
      let mut _0: ();
      let mut _1: !;
      let _2: std::string::String;
      let _6: ();
      let mut _7: std::string::String;
+     let mut _8: bool;
      scope 1 {
          debug _a => _2;
          let _3: i32;
          scope 2 {
              debug _b => _3;
              let _4: std::string::String;
              scope 3 {
                  debug _c => _4;
                  let _5: std::string::String;
                  scope 4 {
                      debug _d => _5;
                  }
              }
          }
      }
  
      bb0: {
+         _8 = const false;
          StorageLive(_2);
          _2 = String::new() -> [return: bb1, unwind: bb12];
      }
  
      bb1: {
          StorageLive(_3);
          _3 = const 12_i32;
          StorageLive(_4);
          _4 = String::new() -> [return: bb2, unwind: bb11];
      }
  
      bb2: {
+         _8 = const true;
          StorageLive(_5);
          _5 = String::new() -> [return: bb3, unwind: bb10];
      }
  
      bb3: {
          StorageLive(_6);
          StorageLive(_7);
+         _8 = const false;
          _7 = move _4;
          _6 = std::mem::drop::<String>(move _7) -> [return: bb4, unwind: bb8];
      }
  
      bb4: {
          StorageDead(_7);
          StorageDead(_6);
          drop(_5) -> [return: bb5, unwind: bb10];
      }
  
      bb5: {
          StorageDead(_5);
-         drop(_4) -> [return: bb6, unwind: bb11];
+         goto -> bb6;
      }
  
      bb6: {
+         _8 = const false;
          StorageDead(_4);
          StorageDead(_3);
          drop(_2) -> [return: bb7, unwind: bb12];
      }
  
      bb7: {
          StorageDead(_2);
          tailcall g();
      }
  
      bb8 (cleanup): {
-         drop(_7) -> [return: bb9, unwind terminate(cleanup)];
+         goto -> bb9;
      }
  
      bb9 (cleanup): {
          drop(_5) -> [return: bb10, unwind terminate(cleanup)];
      }
  
      bb10 (cleanup): {
-         drop(_4) -> [return: bb11, unwind terminate(cleanup)];
+         goto -> bb14;
      }
  
      bb11 (cleanup): {
          drop(_2) -> [return: bb12, unwind terminate(cleanup)];
      }
  
      bb12 (cleanup): {
          resume;
+     }
+ 
+     bb13 (cleanup): {
+         drop(_4) -> [return: bb11, unwind terminate(cleanup)];
+     }
+ 
+     bb14 (cleanup): {
+         switchInt(copy _8) -> [0: bb11, otherwise: bb13];
      }
  }