File: early_otherwise_branch_unwind.unwind.EarlyOtherwiseBranch.diff

package info (click to toggle)
rustc 1.85.0%2Bdfsg3-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, 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 (119 lines) | stat: -rw-r--r-- 2,637 bytes parent folder | download | duplicates (5)
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
109
110
111
112
113
114
115
116
117
118
119
- // MIR for `unwind` before EarlyOtherwiseBranch
+ // MIR for `unwind` after EarlyOtherwiseBranch
  
  fn unwind(_1: Option<Option<Option<T>>>) -> () {
      debug val => _1;
      let mut _0: ();
      let mut _2: isize;
      let mut _3: isize;
      let mut _4: isize;
      let _5: T;
      let mut _6: bool;
      let mut _7: bool;
      let mut _8: isize;
      scope 1 {
          debug _v => _5;
      }
  
      bb0: {
          _6 = const false;
          _7 = const false;
          _6 = const true;
          _7 = const true;
          _4 = discriminant(_1);
          switchInt(copy _4) -> [0: bb4, 1: bb2, otherwise: bb1];
      }
  
      bb1: {
          unreachable;
      }
  
      bb2: {
          _3 = discriminant(((_1 as Some).0: std::option::Option<std::option::Option<T>>));
          switchInt(copy _3) -> [0: bb5, 1: bb3, otherwise: bb1];
      }
  
      bb3: {
          _2 = discriminant(((((_1 as Some).0: std::option::Option<std::option::Option<T>>) as Some).0: std::option::Option<T>));
          switchInt(copy _2) -> [0: bb6, 1: bb7, otherwise: bb1];
      }
  
      bb4: {
          _0 = const ();
          goto -> bb17;
      }
  
      bb5: {
          _0 = const ();
          goto -> bb17;
      }
  
      bb6: {
          _0 = const ();
          goto -> bb17;
      }
  
      bb7: {
          StorageLive(_5);
          _5 = move ((((((_1 as Some).0: std::option::Option<std::option::Option<T>>) as Some).0: std::option::Option<T>) as Some).0: T);
          _0 = const ();
          drop(_5) -> [return: bb8, unwind: bb20];
      }
  
      bb8: {
          StorageDead(_5);
          goto -> bb17;
      }
  
      bb9 (cleanup): {
          resume;
      }
  
      bb10: {
          return;
      }
  
      bb11: {
          switchInt(copy _6) -> [0: bb12, otherwise: bb16];
      }
  
      bb12: {
          _6 = const false;
          goto -> bb10;
      }
  
      bb13: {
          switchInt(copy _7) -> [0: bb14, otherwise: bb15];
      }
  
      bb14: {
          _7 = const false;
          goto -> bb12;
      }
  
      bb15: {
          goto -> bb14;
      }
  
      bb16: {
          _8 = discriminant(((_1 as Some).0: std::option::Option<std::option::Option<T>>));
          switchInt(move _8) -> [1: bb13, otherwise: bb12];
      }
  
      bb17: {
          switchInt(copy _4) -> [1: bb11, otherwise: bb10];
      }
  
      bb18 (cleanup): {
          switchInt(copy _3) -> [1: bb19, otherwise: bb9];
      }
  
      bb19 (cleanup): {
          goto -> bb9;
      }
  
      bb20 (cleanup): {
          switchInt(copy _4) -> [1: bb18, otherwise: bb9];
      }
  }