mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Bless mir-opt tests
This commit is contained in:
parent
9a40f1aa13
commit
479fa4a74d
@ -2,13 +2,16 @@
|
||||
/* generator_layout = GeneratorLayout {
|
||||
field_tys: {
|
||||
_0: GeneratorSavedTy {
|
||||
ty: Alias(
|
||||
Opaque,
|
||||
AliasTy {
|
||||
args: [
|
||||
],
|
||||
def_id: DefId(0:7 ~ async_await[ccf8]::a::{opaque#0}),
|
||||
},
|
||||
ty: Generator(
|
||||
DefId(0:4 ~ async_await[ccf8]::a::{closure#0}),
|
||||
[
|
||||
std::future::ResumeTy,
|
||||
(),
|
||||
(),
|
||||
GeneratorWitness(DefId(0:4 ~ async_await[ccf8]::a::{closure#0}), []),
|
||||
(),
|
||||
],
|
||||
Static,
|
||||
),
|
||||
source_info: SourceInfo {
|
||||
span: $DIR/async_await.rs:15:9: 15:14 (#8),
|
||||
@ -17,13 +20,16 @@
|
||||
ignore_for_traits: false,
|
||||
},
|
||||
_1: GeneratorSavedTy {
|
||||
ty: Alias(
|
||||
Opaque,
|
||||
AliasTy {
|
||||
args: [
|
||||
],
|
||||
def_id: DefId(0:7 ~ async_await[ccf8]::a::{opaque#0}),
|
||||
},
|
||||
ty: Generator(
|
||||
DefId(0:4 ~ async_await[ccf8]::a::{closure#0}),
|
||||
[
|
||||
std::future::ResumeTy,
|
||||
(),
|
||||
(),
|
||||
GeneratorWitness(DefId(0:4 ~ async_await[ccf8]::a::{closure#0}), []),
|
||||
(),
|
||||
],
|
||||
Static,
|
||||
),
|
||||
source_info: SourceInfo {
|
||||
span: $DIR/async_await.rs:16:9: 16:14 (#10),
|
||||
@ -49,15 +55,15 @@ fn b::{closure#0}(_1: Pin<&mut {async fn body@$DIR/async_await.rs:14:18: 17:2}>,
|
||||
debug _task_context => _38;
|
||||
let mut _0: std::task::Poll<()>;
|
||||
let _3: ();
|
||||
let mut _4: impl std::future::Future<Output = ()>;
|
||||
let mut _5: impl std::future::Future<Output = ()>;
|
||||
let mut _6: impl std::future::Future<Output = ()>;
|
||||
let mut _4: {async fn body@$DIR/async_await.rs:11:14: 11:16};
|
||||
let mut _5: {async fn body@$DIR/async_await.rs:11:14: 11:16};
|
||||
let mut _6: {async fn body@$DIR/async_await.rs:11:14: 11:16};
|
||||
let mut _7: ();
|
||||
let _8: ();
|
||||
let mut _9: std::task::Poll<()>;
|
||||
let mut _10: std::pin::Pin<&mut impl std::future::Future<Output = ()>>;
|
||||
let mut _11: &mut impl std::future::Future<Output = ()>;
|
||||
let mut _12: &mut impl std::future::Future<Output = ()>;
|
||||
let mut _10: std::pin::Pin<&mut {async fn body@$DIR/async_await.rs:11:14: 11:16}>;
|
||||
let mut _11: &mut {async fn body@$DIR/async_await.rs:11:14: 11:16};
|
||||
let mut _12: &mut {async fn body@$DIR/async_await.rs:11:14: 11:16};
|
||||
let mut _13: &mut std::task::Context<'_>;
|
||||
let mut _14: &mut std::task::Context<'_>;
|
||||
let mut _15: &mut std::task::Context<'_>;
|
||||
@ -65,14 +71,14 @@ fn b::{closure#0}(_1: Pin<&mut {async fn body@$DIR/async_await.rs:14:18: 17:2}>,
|
||||
let mut _18: !;
|
||||
let mut _19: &mut std::task::Context<'_>;
|
||||
let mut _20: ();
|
||||
let mut _21: impl std::future::Future<Output = ()>;
|
||||
let mut _22: impl std::future::Future<Output = ()>;
|
||||
let mut _23: impl std::future::Future<Output = ()>;
|
||||
let mut _21: {async fn body@$DIR/async_await.rs:11:14: 11:16};
|
||||
let mut _22: {async fn body@$DIR/async_await.rs:11:14: 11:16};
|
||||
let mut _23: {async fn body@$DIR/async_await.rs:11:14: 11:16};
|
||||
let _24: ();
|
||||
let mut _25: std::task::Poll<()>;
|
||||
let mut _26: std::pin::Pin<&mut impl std::future::Future<Output = ()>>;
|
||||
let mut _27: &mut impl std::future::Future<Output = ()>;
|
||||
let mut _28: &mut impl std::future::Future<Output = ()>;
|
||||
let mut _26: std::pin::Pin<&mut {async fn body@$DIR/async_await.rs:11:14: 11:16}>;
|
||||
let mut _27: &mut {async fn body@$DIR/async_await.rs:11:14: 11:16};
|
||||
let mut _28: &mut {async fn body@$DIR/async_await.rs:11:14: 11:16};
|
||||
let mut _29: &mut std::task::Context<'_>;
|
||||
let mut _30: &mut std::task::Context<'_>;
|
||||
let mut _31: &mut std::task::Context<'_>;
|
||||
@ -84,7 +90,7 @@ fn b::{closure#0}(_1: Pin<&mut {async fn body@$DIR/async_await.rs:14:18: 17:2}>,
|
||||
let mut _38: &mut std::task::Context<'_>;
|
||||
let mut _39: u32;
|
||||
scope 1 {
|
||||
debug __awaitee => (((*(_1.0: &mut {async fn body@$DIR/async_await.rs:14:18: 17:2})) as variant#3).0: impl std::future::Future<Output = ()>);
|
||||
debug __awaitee => (((*(_1.0: &mut {async fn body@$DIR/async_await.rs:14:18: 17:2})) as variant#3).0: {async fn body@$DIR/async_await.rs:11:14: 11:16});
|
||||
let _17: ();
|
||||
scope 2 {
|
||||
}
|
||||
@ -93,7 +99,7 @@ fn b::{closure#0}(_1: Pin<&mut {async fn body@$DIR/async_await.rs:14:18: 17:2}>,
|
||||
}
|
||||
}
|
||||
scope 4 {
|
||||
debug __awaitee => (((*(_1.0: &mut {async fn body@$DIR/async_await.rs:14:18: 17:2})) as variant#4).0: impl std::future::Future<Output = ()>);
|
||||
debug __awaitee => (((*(_1.0: &mut {async fn body@$DIR/async_await.rs:14:18: 17:2})) as variant#4).0: {async fn body@$DIR/async_await.rs:11:14: 11:16});
|
||||
let _33: ();
|
||||
scope 5 {
|
||||
}
|
||||
@ -116,13 +122,13 @@ fn b::{closure#0}(_1: Pin<&mut {async fn body@$DIR/async_await.rs:14:18: 17:2}>,
|
||||
}
|
||||
|
||||
bb2: {
|
||||
_4 = <impl Future<Output = ()> as IntoFuture>::into_future(move _5) -> [return: bb3, unwind unreachable];
|
||||
_4 = <{async fn body@$DIR/async_await.rs:11:14: 11:16} as IntoFuture>::into_future(move _5) -> [return: bb3, unwind unreachable];
|
||||
}
|
||||
|
||||
bb3: {
|
||||
StorageDead(_5);
|
||||
nop;
|
||||
(((*(_1.0: &mut {async fn body@$DIR/async_await.rs:14:18: 17:2})) as variant#3).0: impl std::future::Future<Output = ()>) = move _4;
|
||||
(((*(_1.0: &mut {async fn body@$DIR/async_await.rs:14:18: 17:2})) as variant#3).0: {async fn body@$DIR/async_await.rs:11:14: 11:16}) = move _4;
|
||||
goto -> bb4;
|
||||
}
|
||||
|
||||
@ -132,9 +138,9 @@ fn b::{closure#0}(_1: Pin<&mut {async fn body@$DIR/async_await.rs:14:18: 17:2}>,
|
||||
StorageLive(_10);
|
||||
StorageLive(_11);
|
||||
StorageLive(_12);
|
||||
_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 = ()>);
|
||||
_12 = &mut (((*(_1.0: &mut {async fn body@$DIR/async_await.rs:14:18: 17:2})) as variant#3).0: {async fn body@$DIR/async_await.rs:11:14: 11:16});
|
||||
_11 = &mut (*_12);
|
||||
_10 = Pin::<&mut impl Future<Output = ()>>::new_unchecked(move _11) -> [return: bb5, unwind unreachable];
|
||||
_10 = Pin::<&mut {async fn body@$DIR/async_await.rs:11:14: 11:16}>::new_unchecked(move _11) -> [return: bb5, unwind unreachable];
|
||||
}
|
||||
|
||||
bb5: {
|
||||
@ -150,7 +156,7 @@ fn b::{closure#0}(_1: Pin<&mut {async fn body@$DIR/async_await.rs:14:18: 17:2}>,
|
||||
bb6: {
|
||||
_13 = &mut (*_14);
|
||||
StorageDead(_15);
|
||||
_9 = <impl Future<Output = ()> as Future>::poll(move _10, move _13) -> [return: bb7, unwind unreachable];
|
||||
_9 = <{async fn body@$DIR/async_await.rs:11:14: 11:16} as Future>::poll(move _10, move _13) -> [return: bb7, unwind unreachable];
|
||||
}
|
||||
|
||||
bb7: {
|
||||
@ -187,7 +193,7 @@ fn b::{closure#0}(_1: Pin<&mut {async fn body@$DIR/async_await.rs:14:18: 17:2}>,
|
||||
StorageDead(_12);
|
||||
StorageDead(_9);
|
||||
StorageDead(_8);
|
||||
drop((((*(_1.0: &mut {async fn body@$DIR/async_await.rs:14:18: 17:2})) as variant#3).0: impl std::future::Future<Output = ()>)) -> [return: bb12, unwind unreachable];
|
||||
drop((((*(_1.0: &mut {async fn body@$DIR/async_await.rs:14:18: 17:2})) as variant#3).0: {async fn body@$DIR/async_await.rs:11:14: 11:16})) -> [return: bb12, unwind unreachable];
|
||||
}
|
||||
|
||||
bb11: {
|
||||
@ -212,13 +218,13 @@ fn b::{closure#0}(_1: Pin<&mut {async fn body@$DIR/async_await.rs:14:18: 17:2}>,
|
||||
}
|
||||
|
||||
bb14: {
|
||||
_21 = <impl Future<Output = ()> as IntoFuture>::into_future(move _22) -> [return: bb15, unwind unreachable];
|
||||
_21 = <{async fn body@$DIR/async_await.rs:11:14: 11:16} as IntoFuture>::into_future(move _22) -> [return: bb15, unwind unreachable];
|
||||
}
|
||||
|
||||
bb15: {
|
||||
StorageDead(_22);
|
||||
nop;
|
||||
(((*(_1.0: &mut {async fn body@$DIR/async_await.rs:14:18: 17:2})) as variant#4).0: impl std::future::Future<Output = ()>) = move _21;
|
||||
(((*(_1.0: &mut {async fn body@$DIR/async_await.rs:14:18: 17:2})) as variant#4).0: {async fn body@$DIR/async_await.rs:11:14: 11:16}) = move _21;
|
||||
goto -> bb16;
|
||||
}
|
||||
|
||||
@ -228,9 +234,9 @@ fn b::{closure#0}(_1: Pin<&mut {async fn body@$DIR/async_await.rs:14:18: 17:2}>,
|
||||
StorageLive(_26);
|
||||
StorageLive(_27);
|
||||
StorageLive(_28);
|
||||
_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 = ()>);
|
||||
_28 = &mut (((*(_1.0: &mut {async fn body@$DIR/async_await.rs:14:18: 17:2})) as variant#4).0: {async fn body@$DIR/async_await.rs:11:14: 11:16});
|
||||
_27 = &mut (*_28);
|
||||
_26 = Pin::<&mut impl Future<Output = ()>>::new_unchecked(move _27) -> [return: bb17, unwind unreachable];
|
||||
_26 = Pin::<&mut {async fn body@$DIR/async_await.rs:11:14: 11:16}>::new_unchecked(move _27) -> [return: bb17, unwind unreachable];
|
||||
}
|
||||
|
||||
bb17: {
|
||||
@ -246,7 +252,7 @@ fn b::{closure#0}(_1: Pin<&mut {async fn body@$DIR/async_await.rs:14:18: 17:2}>,
|
||||
bb18: {
|
||||
_29 = &mut (*_30);
|
||||
StorageDead(_31);
|
||||
_25 = <impl Future<Output = ()> as Future>::poll(move _26, move _29) -> [return: bb19, unwind unreachable];
|
||||
_25 = <{async fn body@$DIR/async_await.rs:11:14: 11:16} as Future>::poll(move _26, move _29) -> [return: bb19, unwind unreachable];
|
||||
}
|
||||
|
||||
bb19: {
|
||||
@ -279,7 +285,7 @@ fn b::{closure#0}(_1: Pin<&mut {async fn body@$DIR/async_await.rs:14:18: 17:2}>,
|
||||
StorageDead(_28);
|
||||
StorageDead(_25);
|
||||
StorageDead(_24);
|
||||
drop((((*(_1.0: &mut {async fn body@$DIR/async_await.rs:14:18: 17:2})) as variant#4).0: impl std::future::Future<Output = ()>)) -> [return: bb23, unwind unreachable];
|
||||
drop((((*(_1.0: &mut {async fn body@$DIR/async_await.rs:14:18: 17:2})) as variant#4).0: {async fn body@$DIR/async_await.rs:11:14: 11:16})) -> [return: bb23, unwind unreachable];
|
||||
}
|
||||
|
||||
bb22: {
|
||||
|
Loading…
Reference in New Issue
Block a user