]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/enum_cast.droppy.mir_map.0.mir
Rollup merge of #99110 - audunhalland:match_has_guard_from_candidate, r=pnkfelix
[rust.git] / src / test / mir-opt / enum_cast.droppy.mir_map.0.mir
1 // MIR for `droppy` 0 mir_map
2
3 fn droppy() -> () {
4     let mut _0: ();                      // return place in scope 0 at $DIR/enum_cast.rs:+0:13: +0:13
5     let _1: ();                          // in scope 0 at $DIR/enum_cast.rs:+1:5: +6:6
6     let _2: Droppy;                      // in scope 0 at $DIR/enum_cast.rs:+2:13: +2:14
7     let mut _4: isize;                   // in scope 0 at $DIR/enum_cast.rs:+5:17: +5:18
8     let _5: Droppy;                      // in scope 0 at $DIR/enum_cast.rs:+7:9: +7:10
9     scope 1 {
10         debug x => _2;                   // in scope 1 at $DIR/enum_cast.rs:+2:13: +2:14
11         scope 2 {
12             debug y => _3;               // in scope 2 at $DIR/enum_cast.rs:+5:13: +5:14
13         }
14         scope 3 {
15             let _3: usize;               // in scope 3 at $DIR/enum_cast.rs:+5:13: +5:14
16         }
17     }
18     scope 4 {
19         debug z => _5;                   // in scope 4 at $DIR/enum_cast.rs:+7:9: +7:10
20     }
21
22     bb0: {
23         StorageLive(_1);                 // scope 0 at $DIR/enum_cast.rs:+1:5: +6:6
24         StorageLive(_2);                 // scope 0 at $DIR/enum_cast.rs:+2:13: +2:14
25         _2 = Droppy::C;                  // scope 0 at $DIR/enum_cast.rs:+2:17: +2:26
26         FakeRead(ForLet(None), _2);      // scope 0 at $DIR/enum_cast.rs:+2:13: +2:14
27         StorageLive(_3);                 // scope 3 at $DIR/enum_cast.rs:+5:13: +5:14
28         _4 = discriminant(_2);           // scope 3 at $DIR/enum_cast.rs:+5:17: +5:27
29         _3 = move _4 as usize (Misc);    // scope 3 at $DIR/enum_cast.rs:+5:17: +5:27
30         FakeRead(ForLet(None), _3);      // scope 3 at $DIR/enum_cast.rs:+5:13: +5:14
31         _1 = const ();                   // scope 0 at $DIR/enum_cast.rs:+1:5: +6:6
32         StorageDead(_3);                 // scope 1 at $DIR/enum_cast.rs:+6:5: +6:6
33         drop(_2) -> [return: bb1, unwind: bb3]; // scope 0 at $DIR/enum_cast.rs:+6:5: +6:6
34     }
35
36     bb1: {
37         StorageDead(_2);                 // scope 0 at $DIR/enum_cast.rs:+6:5: +6:6
38         StorageDead(_1);                 // scope 0 at $DIR/enum_cast.rs:+6:5: +6:6
39         StorageLive(_5);                 // scope 0 at $DIR/enum_cast.rs:+7:9: +7:10
40         _5 = Droppy::B;                  // scope 0 at $DIR/enum_cast.rs:+7:13: +7:22
41         FakeRead(ForLet(None), _5);      // scope 0 at $DIR/enum_cast.rs:+7:9: +7:10
42         _0 = const ();                   // scope 0 at $DIR/enum_cast.rs:+0:13: +8:2
43         drop(_5) -> [return: bb2, unwind: bb3]; // scope 0 at $DIR/enum_cast.rs:+8:1: +8:2
44     }
45
46     bb2: {
47         StorageDead(_5);                 // scope 0 at $DIR/enum_cast.rs:+8:1: +8:2
48         return;                          // scope 0 at $DIR/enum_cast.rs:+8:2: +8:2
49     }
50
51     bb3 (cleanup): {
52         resume;                          // scope 0 at $DIR/enum_cast.rs:+0:1: +8:2
53     }
54 }