@@ -98,14 +98,14 @@ fn b::{closure#0}(_1: Pin<&mut [async fn body@$DIR/async_await.rs:14:18: 17:2]>,
98
98
StorageLive(_3); // scope 0 at $DIR/async_await.rs:+1:5 : +1:14
99
99
StorageLive(_4); // scope 0 at $DIR/async_await.rs:+1:8 : +1:14
100
100
StorageLive(_5); // scope 0 at $DIR/async_await.rs:+1:5 : +1:8
101
- _5 = a() -> bb2; // scope 0 at $DIR/async_await.rs:+1:5 : +1:8
101
+ _5 = a() -> [return : bb2, unwind unreachable]; // scope 0 at $DIR/async_await.rs:+1:5: +1:8
102
102
// mir::Constant
103
103
// + span : $DIR/async_await.rs:15:5: 15:6
104
104
// + literal : Const { ty: fn() -> impl Future<Output = ()> {a}, val: Value(<ZST>) }
105
105
}
106
106
107
107
bb2 : {
108
- _4 = <impl Future<Output = ()> as IntoFuture>::into_future(move _5) -> bb3; // scope 0 at $DIR/async_await.rs:+1:8 : +1:14
108
+ _4 = <impl Future<Output = ()> as IntoFuture>::into_future(move _5) -> [return : bb3, unwind unreachable] ; // scope 0 at $DIR/async_await.rs:+1:8: +1:14
109
109
// mir::Constant
110
110
// + span : $DIR/async_await.rs:15:8: 15:14
111
111
// + literal : Const { ty: fn(impl Future<Output = ()>) -> <impl Future<Output = ()> as IntoFuture>::IntoFuture {<impl Future<Output = ()> as IntoFuture>::into_future}, val: Value(<ZST>) }
@@ -126,7 +126,7 @@ fn b::{closure#0}(_1: Pin<&mut [async fn body@$DIR/async_await.rs:14:18: 17:2]>,
126
126
StorageLive(_12); // scope 2 at $DIR/async_await.rs:+1:8 : +1:14
127
127
_12 = &mut (((*(_1.0 : &mut [async fn body@$DIR/async_await.rs:14:18: 17:2])) as variant#3).0: impl std::future::Future<Output = ()>); // scope 2 at $DIR/async_await.rs:+1:8: +1:14
128
128
_11 = &mut (*_12); // scope 2 at $DIR/async_await.rs:+1:8 : +1:14
129
- _10 = Pin::<&mut impl Future<Output = ()>>::new_unchecked(move _11) -> bb5; // scope 2 at $DIR/async_await.rs:+1:8 : +1:14
129
+ _10 = Pin::<&mut impl Future<Output = ()>>::new_unchecked(move _11) -> [return : bb5, unwind unreachable] ; // scope 2 at $DIR/async_await.rs:+1:8: +1:14
130
130
// mir::Constant
131
131
// + span : $DIR/async_await.rs:15:8: 15:14
132
132
// + literal : Const { ty: unsafe fn(&mut impl Future<Output = ()>) -> Pin<&mut impl Future<Output = ()>> {Pin::<&mut impl Future<Output = ()>>::new_unchecked}, val: Value(<ZST>) }
@@ -145,7 +145,7 @@ fn b::{closure#0}(_1: Pin<&mut [async fn body@$DIR/async_await.rs:14:18: 17:2]>,
145
145
bb6 : {
146
146
_13 = &mut (*_14); // scope 2 at $DIR/async_await.rs:+1:5 : +1:14
147
147
StorageDead(_15); // scope 2 at $DIR/async_await.rs:+1:13 : +1:14
148
- _9 = <impl Future<Output = ()> as Future>::poll(move _10, move _13) -> bb7; // scope 2 at $DIR/async_await.rs:+1:8 : +1:14
148
+ _9 = <impl Future<Output = ()> as Future>::poll(move _10, move _13) -> [return : bb7, unwind unreachable] ; // scope 2 at $DIR/async_await.rs:+1:8: +1:14
149
149
// mir::Constant
150
150
// + span : $DIR/async_await.rs:15:8: 15:14
151
151
// + literal : Const { ty: for<'a, 'b, 'c> fn(Pin<&'a mut impl Future<Output = ()>>, &'b mut Context<'c>) -> Poll<<impl Future<Output = ()> as Future>::Output> {<impl Future<Output = ()> as Future>::poll}, val: Value(<ZST>) }
@@ -206,14 +206,14 @@ fn b::{closure#0}(_1: Pin<&mut [async fn body@$DIR/async_await.rs:14:18: 17:2]>,
206
206
StorageDead(_3); // scope 0 at $DIR/async_await.rs:+1:14 : +1:15
207
207
StorageLive(_21); // scope 0 at $DIR/async_await.rs:+2:8 : +2:14
208
208
StorageLive(_22); // scope 0 at $DIR/async_await.rs:+2:5 : +2:8
209
- _22 = a() -> bb14; // scope 0 at $DIR/async_await.rs:+2:5 : +2:8
209
+ _22 = a() -> [return : bb14, unwind unreachable]; // scope 0 at $DIR/async_await.rs:+2:5: +2:8
210
210
// mir::Constant
211
211
// + span : $DIR/async_await.rs:16:5: 16:6
212
212
// + literal : Const { ty: fn() -> impl Future<Output = ()> {a}, val: Value(<ZST>) }
213
213
}
214
214
215
215
bb14 : {
216
- _21 = <impl Future<Output = ()> as IntoFuture>::into_future(move _22) -> bb15; // scope 0 at $DIR/async_await.rs:+2:8 : +2:14
216
+ _21 = <impl Future<Output = ()> as IntoFuture>::into_future(move _22) -> [return : bb15, unwind unreachable] ; // scope 0 at $DIR/async_await.rs:+2:8: +2:14
217
217
// mir::Constant
218
218
// + span : $DIR/async_await.rs:16:8: 16:14
219
219
// + literal : Const { ty: fn(impl Future<Output = ()>) -> <impl Future<Output = ()> as IntoFuture>::IntoFuture {<impl Future<Output = ()> as IntoFuture>::into_future}, val: Value(<ZST>) }
@@ -234,7 +234,7 @@ fn b::{closure#0}(_1: Pin<&mut [async fn body@$DIR/async_await.rs:14:18: 17:2]>,
234
234
StorageLive(_28); // scope 5 at $DIR/async_await.rs:+2:8 : +2:14
235
235
_28 = &mut (((*(_1.0 : &mut [async fn body@$DIR/async_await.rs:14:18: 17:2])) as variant#4).0: impl std::future::Future<Output = ()>); // scope 5 at $DIR/async_await.rs:+2:8: +2:14
236
236
_27 = &mut (*_28); // scope 5 at $DIR/async_await.rs:+2:8 : +2:14
237
- _26 = Pin::<&mut impl Future<Output = ()>>::new_unchecked(move _27) -> bb17; // scope 5 at $DIR/async_await.rs:+2:8 : +2:14
237
+ _26 = Pin::<&mut impl Future<Output = ()>>::new_unchecked(move _27) -> [return : bb17, unwind unreachable] ; // scope 5 at $DIR/async_await.rs:+2:8: +2:14
238
238
// mir::Constant
239
239
// + span : $DIR/async_await.rs:16:8: 16:14
240
240
// + literal : Const { ty: unsafe fn(&mut impl Future<Output = ()>) -> Pin<&mut impl Future<Output = ()>> {Pin::<&mut impl Future<Output = ()>>::new_unchecked}, val: Value(<ZST>) }
@@ -253,7 +253,7 @@ fn b::{closure#0}(_1: Pin<&mut [async fn body@$DIR/async_await.rs:14:18: 17:2]>,
253
253
bb18 : {
254
254
_29 = &mut (*_30); // scope 5 at $DIR/async_await.rs:+2:5 : +2:14
255
255
StorageDead(_31); // scope 5 at $DIR/async_await.rs:+2:13 : +2:14
256
- _25 = <impl Future<Output = ()> as Future>::poll(move _26, move _29) -> bb19; // scope 5 at $DIR/async_await.rs:+2:8 : +2:14
256
+ _25 = <impl Future<Output = ()> as Future>::poll(move _26, move _29) -> [return : bb19, unwind unreachable] ; // scope 5 at $DIR/async_await.rs:+2:8: +2:14
257
257
// mir::Constant
258
258
// + span : $DIR/async_await.rs:16:8: 16:14
259
259
// + literal : Const { ty: for<'a, 'b, 'c> fn(Pin<&'a mut impl Future<Output = ()>>, &'b mut Context<'c>) -> Poll<<impl Future<Output = ()> as Future>::Output> {<impl Future<Output = ()> as Future>::poll}, val: Value(<ZST>) }
0 commit comments