]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/issue_41110.main.ElaborateDrops.after.mir
Rollup merge of #75837 - GuillaumeGomez:fix-font-color-help-button, r=Cldfire
[rust.git] / src / test / mir-opt / issue_41110.main.ElaborateDrops.after.mir
1 // MIR for `main` after ElaborateDrops
2
3 fn main() -> () {
4     let mut _0: ();                      // return place in scope 0 at $DIR/issue-41110.rs:7:11: 7:11
5     let _1: ();                          // in scope 0 at $DIR/issue-41110.rs:8:9: 8:10
6     let mut _2: S;                       // in scope 0 at $DIR/issue-41110.rs:8:13: 8:14
7     let mut _3: S;                       // in scope 0 at $DIR/issue-41110.rs:8:21: 8:27
8     let mut _4: S;                       // in scope 0 at $DIR/issue-41110.rs:8:21: 8:22
9     let mut _5: bool;                    // in scope 0 at $DIR/issue-41110.rs:8:27: 8:28
10     scope 1 {
11         debug x => _1;                   // in scope 1 at $DIR/issue-41110.rs:8:9: 8:10
12     }
13
14     bb0: {
15         _5 = const false;                // scope 0 at $DIR/issue-41110.rs:8:9: 8:10
16         StorageLive(_1);                 // scope 0 at $DIR/issue-41110.rs:8:9: 8:10
17         StorageLive(_2);                 // scope 0 at $DIR/issue-41110.rs:8:13: 8:14
18         _5 = const true;                 // scope 0 at $DIR/issue-41110.rs:8:13: 8:14
19         _2 = S;                          // scope 0 at $DIR/issue-41110.rs:8:13: 8:14
20         StorageLive(_3);                 // scope 0 at $DIR/issue-41110.rs:8:21: 8:27
21         StorageLive(_4);                 // scope 0 at $DIR/issue-41110.rs:8:21: 8:22
22         _4 = S;                          // scope 0 at $DIR/issue-41110.rs:8:21: 8:22
23         _3 = S::id(move _4) -> [return: bb2, unwind: bb4]; // scope 0 at $DIR/issue-41110.rs:8:21: 8:27
24                                          // mir::Constant
25                                          // + span: $DIR/issue-41110.rs:8:23: 8:25
26                                          // + literal: Const { ty: fn(S) -> S {S::id}, val: Value(Scalar(<ZST>)) }
27     }
28
29     bb1 (cleanup): {
30         resume;                          // scope 0 at $DIR/issue-41110.rs:7:1: 9:2
31     }
32
33     bb2: {
34         StorageDead(_4);                 // scope 0 at $DIR/issue-41110.rs:8:26: 8:27
35         _5 = const false;                // scope 0 at $DIR/issue-41110.rs:8:13: 8:28
36         _1 = S::other(move _2, move _3) -> [return: bb6, unwind: bb5]; // scope 0 at $DIR/issue-41110.rs:8:13: 8:28
37                                          // mir::Constant
38                                          // + span: $DIR/issue-41110.rs:8:15: 8:20
39                                          // + literal: Const { ty: fn(S, S) {S::other}, val: Value(Scalar(<ZST>)) }
40     }
41
42     bb3 (cleanup): {
43         goto -> bb9;                     // scope 0 at $DIR/issue-41110.rs:8:27: 8:28
44     }
45
46     bb4 (cleanup): {
47         goto -> bb3;                     // scope 0 at $DIR/issue-41110.rs:8:26: 8:27
48     }
49
50     bb5 (cleanup): {
51         goto -> bb3;                     // scope 0 at $DIR/issue-41110.rs:8:27: 8:28
52     }
53
54     bb6: {
55         StorageDead(_3);                 // scope 0 at $DIR/issue-41110.rs:8:27: 8:28
56         _5 = const false;                // scope 0 at $DIR/issue-41110.rs:8:27: 8:28
57         StorageDead(_2);                 // scope 0 at $DIR/issue-41110.rs:8:27: 8:28
58         _0 = const ();                   // scope 0 at $DIR/issue-41110.rs:7:11: 9:2
59         StorageDead(_1);                 // scope 0 at $DIR/issue-41110.rs:9:1: 9:2
60         return;                          // scope 0 at $DIR/issue-41110.rs:9:2: 9:2
61     }
62
63     bb7 (cleanup): {
64         drop(_2) -> bb1;                 // scope 0 at $DIR/issue-41110.rs:8:27: 8:28
65     }
66
67     bb8 (cleanup): {
68         _5 = const false;                // scope 0 at $DIR/issue-41110.rs:8:27: 8:28
69         goto -> bb7;                     // scope 0 at $DIR/issue-41110.rs:8:27: 8:28
70     }
71
72     bb9 (cleanup): {
73         switchInt(_5) -> [false: bb1, otherwise: bb8]; // scope 0 at $DIR/issue-41110.rs:8:27: 8:28
74     }
75 }