File: early_otherwise_branch_unwind.poll.EarlyOtherwiseBranch.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 (126 lines) | stat: -rw-r--r-- 3,035 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
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
120
121
122
123
124
125
126
- // MIR for `poll` before EarlyOtherwiseBranch
+ // MIR for `poll` after EarlyOtherwiseBranch
  
  fn poll(_1: Poll<Result<Option<Vec<u8>>, u8>>) -> () {
      debug val => _1;
      let mut _0: ();
      let mut _2: isize;
      let mut _3: isize;
      let mut _4: isize;
      let _5: std::vec::Vec<u8>;
      let _6: u8;
      let mut _7: bool;
      let mut _8: bool;
      let mut _9: isize;
      scope 1 {
          debug _trailers => _5;
      }
      scope 2 {
          debug _err => _6;
      }
  
      bb0: {
          _7 = const false;
          _8 = const false;
          _7 = const true;
          _8 = const true;
          _4 = discriminant(_1);
          switchInt(copy _4) -> [0: bb2, 1: bb4, otherwise: bb1];
      }
  
      bb1: {
          unreachable;
      }
  
      bb2: {
          _3 = discriminant(((_1 as Ready).0: std::result::Result<std::option::Option<std::vec::Vec<u8>>, u8>));
          switchInt(copy _3) -> [0: bb3, 1: bb6, otherwise: bb1];
      }
  
      bb3: {
          _2 = discriminant(((((_1 as Ready).0: std::result::Result<std::option::Option<std::vec::Vec<u8>>, u8>) as Ok).0: std::option::Option<std::vec::Vec<u8>>));
          switchInt(copy _2) -> [0: bb5, 1: bb7, otherwise: bb1];
      }
  
      bb4: {
          _0 = const ();
          goto -> bb17;
      }
  
      bb5: {
          _0 = const ();
          goto -> bb17;
      }
  
      bb6: {
          StorageLive(_6);
          _6 = copy ((((_1 as Ready).0: std::result::Result<std::option::Option<std::vec::Vec<u8>>, u8>) as Err).0: u8);
          _0 = const ();
          StorageDead(_6);
          goto -> bb17;
      }
  
      bb7: {
          StorageLive(_5);
          _5 = move ((((((_1 as Ready).0: std::result::Result<std::option::Option<std::vec::Vec<u8>>, u8>) as Ok).0: std::option::Option<std::vec::Vec<u8>>) as Some).0: std::vec::Vec<u8>);
          _0 = const ();
          drop(_5) -> [return: bb8, unwind: bb20];
      }
  
      bb8: {
          StorageDead(_5);
          goto -> bb17;
      }
  
      bb9 (cleanup): {
          resume;
      }
  
      bb10: {
          return;
      }
  
      bb11: {
          switchInt(copy _7) -> [0: bb12, otherwise: bb16];
      }
  
      bb12: {
          _7 = const false;
          goto -> bb10;
      }
  
      bb13: {
          switchInt(copy _8) -> [0: bb14, otherwise: bb15];
      }
  
      bb14: {
          _8 = const false;
          goto -> bb12;
      }
  
      bb15: {
          goto -> bb14;
      }
  
      bb16: {
          _9 = discriminant(((_1 as Ready).0: std::result::Result<std::option::Option<std::vec::Vec<u8>>, u8>));
          switchInt(move _9) -> [0: bb13, otherwise: bb12];
      }
  
      bb17: {
          switchInt(copy _4) -> [0: bb11, otherwise: bb10];
      }
  
      bb18 (cleanup): {
          switchInt(copy _3) -> [0: bb19, otherwise: bb9];
      }
  
      bb19 (cleanup): {
          goto -> bb9;
      }
  
      bb20 (cleanup): {
          switchInt(copy _4) -> [0: bb18, otherwise: bb9];
      }
  }