]>
Commit | Line | Data |
---|---|---|
1b1a35ee | 1 | // MIR for `main::{closure#0}` before StateTransform |
ba9703b0 | 2 | |
1b1a35ee | 3 | fn main::{closure#0}(_1: [generator@$DIR/generator-storage-dead-unwind.rs:22:16: 28:6 {Foo, Bar, ()}], _2: ()) -> () |
ba9703b0 XL |
4 | yields () |
5 | { | |
6 | let mut _0: (); // return place in scope 0 at $DIR/generator-storage-dead-unwind.rs:22:19: 22:19 | |
7 | let _3: Foo; // in scope 0 at $DIR/generator-storage-dead-unwind.rs:23:13: 23:14 | |
8 | let _5: (); // in scope 0 at $DIR/generator-storage-dead-unwind.rs:25:9: 25:14 | |
9 | let mut _6: (); // in scope 0 at $DIR/generator-storage-dead-unwind.rs:25:9: 25:14 | |
10 | let _7: (); // in scope 0 at $DIR/generator-storage-dead-unwind.rs:26:9: 26:16 | |
11 | let mut _8: Foo; // in scope 0 at $DIR/generator-storage-dead-unwind.rs:26:14: 26:15 | |
12 | let _9: (); // in scope 0 at $DIR/generator-storage-dead-unwind.rs:27:9: 27:16 | |
13 | let mut _10: Bar; // in scope 0 at $DIR/generator-storage-dead-unwind.rs:27:14: 27:15 | |
14 | scope 1 { | |
15 | debug a => _3; // in scope 1 at $DIR/generator-storage-dead-unwind.rs:23:13: 23:14 | |
16 | let _4: Bar; // in scope 1 at $DIR/generator-storage-dead-unwind.rs:24:13: 24:14 | |
17 | scope 2 { | |
18 | debug b => _4; // in scope 2 at $DIR/generator-storage-dead-unwind.rs:24:13: 24:14 | |
19 | } | |
20 | } | |
21 | ||
22 | bb0: { | |
f9f354fc | 23 | StorageLive(_3); // scope 0 at $DIR/generator-storage-dead-unwind.rs:23:13: 23:14 |
3dfed10e | 24 | (_3.0: i32) = const 5_i32; // scope 0 at $DIR/generator-storage-dead-unwind.rs:23:17: 23:23 |
f9f354fc | 25 | StorageLive(_4); // scope 1 at $DIR/generator-storage-dead-unwind.rs:24:13: 24:14 |
3dfed10e | 26 | (_4.0: i32) = const 6_i32; // scope 1 at $DIR/generator-storage-dead-unwind.rs:24:17: 24:23 |
f9f354fc XL |
27 | StorageLive(_5); // scope 2 at $DIR/generator-storage-dead-unwind.rs:25:9: 25:14 |
28 | StorageLive(_6); // scope 2 at $DIR/generator-storage-dead-unwind.rs:25:9: 25:14 | |
29967ef6 | 29 | _5 = yield(move _6) -> [resume: bb1, drop: bb5]; // scope 2 at $DIR/generator-storage-dead-unwind.rs:25:9: 25:14 |
ba9703b0 XL |
30 | } |
31 | ||
29967ef6 | 32 | bb1: { |
f9f354fc XL |
33 | StorageDead(_6); // scope 2 at $DIR/generator-storage-dead-unwind.rs:25:13: 25:14 |
34 | StorageDead(_5); // scope 2 at $DIR/generator-storage-dead-unwind.rs:25:14: 25:15 | |
35 | StorageLive(_7); // scope 2 at $DIR/generator-storage-dead-unwind.rs:26:9: 26:16 | |
36 | StorageLive(_8); // scope 2 at $DIR/generator-storage-dead-unwind.rs:26:14: 26:15 | |
37 | _8 = move _3; // scope 2 at $DIR/generator-storage-dead-unwind.rs:26:14: 26:15 | |
29967ef6 | 38 | _7 = take::<Foo>(move _8) -> [return: bb2, unwind: bb9]; // scope 2 at $DIR/generator-storage-dead-unwind.rs:26:9: 26:16 |
ba9703b0 XL |
39 | // mir::Constant |
40 | // + span: $DIR/generator-storage-dead-unwind.rs:26:9: 26:13 | |
41 | // + literal: Const { ty: fn(Foo) {take::<Foo>}, val: Value(Scalar(<ZST>)) } | |
42 | } | |
43 | ||
29967ef6 XL |
44 | bb2: { |
45 | StorageDead(_8); // scope 2 at $DIR/generator-storage-dead-unwind.rs:26:15: 26:16 | |
46 | StorageDead(_7); // scope 2 at $DIR/generator-storage-dead-unwind.rs:26:16: 26:17 | |
47 | StorageLive(_9); // scope 2 at $DIR/generator-storage-dead-unwind.rs:27:9: 27:16 | |
48 | StorageLive(_10); // scope 2 at $DIR/generator-storage-dead-unwind.rs:27:14: 27:15 | |
49 | _10 = move _4; // scope 2 at $DIR/generator-storage-dead-unwind.rs:27:14: 27:15 | |
50 | _9 = take::<Bar>(move _10) -> [return: bb3, unwind: bb8]; // scope 2 at $DIR/generator-storage-dead-unwind.rs:27:9: 27:16 | |
51 | // mir::Constant | |
52 | // + span: $DIR/generator-storage-dead-unwind.rs:27:9: 27:13 | |
53 | // + literal: Const { ty: fn(Bar) {take::<Bar>}, val: Value(Scalar(<ZST>)) } | |
54 | } | |
55 | ||
56 | bb3: { | |
57 | StorageDead(_10); // scope 2 at $DIR/generator-storage-dead-unwind.rs:27:15: 27:16 | |
58 | StorageDead(_9); // scope 2 at $DIR/generator-storage-dead-unwind.rs:27:16: 27:17 | |
59 | _0 = const (); // scope 0 at $DIR/generator-storage-dead-unwind.rs:22:19: 28:6 | |
60 | StorageDead(_4); // scope 1 at $DIR/generator-storage-dead-unwind.rs:28:5: 28:6 | |
f9f354fc | 61 | StorageDead(_3); // scope 0 at $DIR/generator-storage-dead-unwind.rs:28:5: 28:6 |
29967ef6 | 62 | drop(_1) -> [return: bb4, unwind: bb11]; // scope 0 at $DIR/generator-storage-dead-unwind.rs:28:5: 28:6 |
ba9703b0 XL |
63 | } |
64 | ||
65 | bb4: { | |
29967ef6 | 66 | return; // scope 0 at $DIR/generator-storage-dead-unwind.rs:28:6: 28:6 |
ba9703b0 XL |
67 | } |
68 | ||
69 | bb5: { | |
29967ef6 XL |
70 | StorageDead(_6); // scope 2 at $DIR/generator-storage-dead-unwind.rs:25:13: 25:14 |
71 | StorageDead(_5); // scope 2 at $DIR/generator-storage-dead-unwind.rs:25:14: 25:15 | |
72 | StorageDead(_4); // scope 1 at $DIR/generator-storage-dead-unwind.rs:28:5: 28:6 | |
73 | drop(_3) -> [return: bb6, unwind: bb12]; // scope 0 at $DIR/generator-storage-dead-unwind.rs:28:5: 28:6 | |
ba9703b0 XL |
74 | } |
75 | ||
76 | bb6: { | |
29967ef6 XL |
77 | StorageDead(_3); // scope 0 at $DIR/generator-storage-dead-unwind.rs:28:5: 28:6 |
78 | drop(_1) -> [return: bb7, unwind: bb11]; // scope 0 at $DIR/generator-storage-dead-unwind.rs:28:5: 28:6 | |
ba9703b0 XL |
79 | } |
80 | ||
81 | bb7: { | |
29967ef6 | 82 | generator_drop; // scope 0 at $DIR/generator-storage-dead-unwind.rs:22:16: 28:6 |
ba9703b0 XL |
83 | } |
84 | ||
85 | bb8 (cleanup): { | |
29967ef6 XL |
86 | StorageDead(_10); // scope 2 at $DIR/generator-storage-dead-unwind.rs:27:15: 27:16 |
87 | StorageDead(_9); // scope 2 at $DIR/generator-storage-dead-unwind.rs:27:16: 27:17 | |
88 | goto -> bb10; // scope 2 at $DIR/generator-storage-dead-unwind.rs:1:1: 1:1 | |
ba9703b0 XL |
89 | } |
90 | ||
91 | bb9 (cleanup): { | |
f9f354fc XL |
92 | StorageDead(_8); // scope 2 at $DIR/generator-storage-dead-unwind.rs:26:15: 26:16 |
93 | StorageDead(_7); // scope 2 at $DIR/generator-storage-dead-unwind.rs:26:16: 26:17 | |
29967ef6 | 94 | goto -> bb10; // scope 2 at $DIR/generator-storage-dead-unwind.rs:1:1: 1:1 |
ba9703b0 XL |
95 | } |
96 | ||
29967ef6 | 97 | bb10 (cleanup): { |
f9f354fc XL |
98 | StorageDead(_4); // scope 1 at $DIR/generator-storage-dead-unwind.rs:28:5: 28:6 |
99 | StorageDead(_3); // scope 0 at $DIR/generator-storage-dead-unwind.rs:28:5: 28:6 | |
29967ef6 | 100 | drop(_1) -> bb11; // scope 0 at $DIR/generator-storage-dead-unwind.rs:28:5: 28:6 |
ba9703b0 XL |
101 | } |
102 | ||
103 | bb11 (cleanup): { | |
29967ef6 | 104 | resume; // scope 0 at $DIR/generator-storage-dead-unwind.rs:22:16: 28:6 |
ba9703b0 XL |
105 | } |
106 | ||
29967ef6 XL |
107 | bb12 (cleanup): { |
108 | StorageDead(_3); // scope 0 at $DIR/generator-storage-dead-unwind.rs:28:5: 28:6 | |
109 | drop(_1) -> bb11; // scope 0 at $DIR/generator-storage-dead-unwind.rs:28:5: 28:6 | |
ba9703b0 XL |
110 | } |
111 | } |