1 // MIR for `main::{closure#0}` 0 generator_drop
2 /* generator_layout = GeneratorLayout {
4 _0: std::string::String,
12 storage_conflicts: BitMatrix(1x1) {
17 fn main::{closure#0}(_1: *mut [generator@$DIR/generator_drop_cleanup.rs:10:15: 10:17]) -> () {
18 let mut _0: (); // return place in scope 0 at $DIR/generator_drop_cleanup.rs:+0:15: +3:6
19 let mut _2: (); // in scope 0 at $DIR/generator_drop_cleanup.rs:+0:15: +3:6
20 let _3: std::string::String; // in scope 0 at $DIR/generator_drop_cleanup.rs:+1:13: +1:15
21 let _4: (); // in scope 0 at $DIR/generator_drop_cleanup.rs:+2:9: +2:14
22 let mut _5: (); // in scope 0 at $DIR/generator_drop_cleanup.rs:+2:9: +2:14
23 let mut _6: (); // in scope 0 at $DIR/generator_drop_cleanup.rs:+0:18: +0:18
24 let mut _7: (); // in scope 0 at $DIR/generator_drop_cleanup.rs:+0:15: +3:6
25 let mut _8: u32; // in scope 0 at $DIR/generator_drop_cleanup.rs:+0:15: +3:6
27 debug _s => (((*_1) as variant#3).0: std::string::String); // in scope 1 at $DIR/generator_drop_cleanup.rs:+1:13: +1:15
31 _8 = discriminant((*_1)); // scope 0 at $DIR/generator_drop_cleanup.rs:+0:15: +3:6
32 switchInt(move _8) -> [0: bb7, 3: bb10, otherwise: bb11]; // scope 0 at $DIR/generator_drop_cleanup.rs:+0:15: +3:6
36 StorageDead(_5); // scope 1 at $DIR/generator_drop_cleanup.rs:+2:13: +2:14
37 StorageDead(_4); // scope 1 at $DIR/generator_drop_cleanup.rs:+2:14: +2:15
38 drop((((*_1) as variant#3).0: std::string::String)) -> [return: bb2, unwind: bb5]; // scope 0 at $DIR/generator_drop_cleanup.rs:+3:5: +3:6
42 nop; // scope 0 at $DIR/generator_drop_cleanup.rs:+3:5: +3:6
43 goto -> bb8; // scope 0 at $DIR/generator_drop_cleanup.rs:+3:5: +3:6
47 return; // scope 0 at $DIR/generator_drop_cleanup.rs:+0:15: +3:6
51 resume; // scope 0 at $DIR/generator_drop_cleanup.rs:+0:15: +3:6
55 nop; // scope 0 at $DIR/generator_drop_cleanup.rs:+3:5: +3:6
56 goto -> bb4; // scope 0 at $DIR/generator_drop_cleanup.rs:+3:5: +3:6
60 return; // scope 0 at $DIR/generator_drop_cleanup.rs:+0:15: +3:6
64 goto -> bb9; // scope 0 at $DIR/generator_drop_cleanup.rs:+0:15: +3:6
68 goto -> bb3; // scope 0 at $DIR/generator_drop_cleanup.rs:+3:5: +3:6
72 goto -> bb6; // scope 0 at $DIR/generator_drop_cleanup.rs:+0:15: +3:6
76 StorageLive(_4); // scope 0 at $DIR/generator_drop_cleanup.rs:+0:15: +3:6
77 StorageLive(_5); // scope 0 at $DIR/generator_drop_cleanup.rs:+0:15: +3:6
78 goto -> bb1; // scope 0 at $DIR/generator_drop_cleanup.rs:+0:15: +3:6
82 return; // scope 0 at $DIR/generator_drop_cleanup.rs:+0:15: +3:6