Skip to content

Commit e276676

Browse files
committed
Auto merge of #868 - JohnTitor:adjust-async-await-test, r=RalfJung
Remove `await_macro` `await_macro` is now unsupported so we should remove it. Failed in rust-lang/rust#63141 r? @RalfJung
2 parents 0347e1b + af7570f commit e276676

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/run-pass/async-fn.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
#![feature(
2-
async_await,
3-
await_macro,
4-
)]
1+
#![feature(async_await)]
52

63
use std::{future::Future, pin::Pin, task::Poll, ptr};
74
use std::task::{Waker, RawWaker, RawWakerVTable, Context};
@@ -11,7 +8,7 @@ pub async fn foo(x: &u32, y: u32) -> u32 {
118
let y = &y;
129
let z = 9;
1310
let z = &z;
14-
let y = await!(async { *y + *z });
11+
let y = async { *y + *z }.await;
1512
let a = 10;
1613
let a = &a;
1714
*x + y + *a

0 commit comments

Comments
 (0)