blob: 11501907b8812b18a6ba55d44a16bfa568321005 (
plain)
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
|
- // MIR for `main` before ElaborateDrops
+ // MIR for `main` after ElaborateDrops
fn main() -> () {
let mut _0: ();
let _1: ();
let mut _2: S;
let mut _3: S;
let mut _4: S;
+ let mut _5: bool;
scope 1 {
debug x => _1;
}
bb0: {
+ _5 = const false;
StorageLive(_1);
StorageLive(_2);
+ _5 = const true;
_2 = S;
StorageLive(_3);
StorageLive(_4);
_4 = S;
_3 = S::id(move _4) -> [return: bb1, unwind: bb4];
}
bb1: {
StorageDead(_4);
+ _5 = const false;
_1 = S::other(move _2, move _3) -> [return: bb2, unwind: bb3];
}
bb2: {
StorageDead(_3);
+ _5 = const false;
StorageDead(_2);
_0 = const ();
StorageDead(_1);
return;
}
bb3 (cleanup): {
- drop(_3) -> [return: bb5, unwind terminate];
+ goto -> bb5;
}
bb4 (cleanup): {
- drop(_4) -> [return: bb5, unwind terminate];
+ goto -> bb5;
}
bb5 (cleanup): {
- drop(_2) -> [return: bb6, unwind terminate];
+ goto -> bb8;
}
bb6 (cleanup): {
resume;
+ }
+
+ bb7 (cleanup): {
+ drop(_2) -> [return: bb6, unwind terminate];
+ }
+
+ bb8 (cleanup): {
+ switchInt(_5) -> [0: bb6, otherwise: bb7];
}
}
|