From af7570fced59a775da78492cb20a6f22982a1268 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Wed, 31 Jul 2019 16:42:38 +0900 Subject: [PATCH] Remove await_macro --- tests/run-pass/async-fn.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/run-pass/async-fn.rs b/tests/run-pass/async-fn.rs index 8a0ac875f5..5c916473b5 100644 --- a/tests/run-pass/async-fn.rs +++ b/tests/run-pass/async-fn.rs @@ -1,7 +1,4 @@ -#![feature( - async_await, - await_macro, -)] +#![feature(async_await)] use std::{future::Future, pin::Pin, task::Poll, ptr}; use std::task::{Waker, RawWaker, RawWakerVTable, Context}; @@ -11,7 +8,7 @@ pub async fn foo(x: &u32, y: u32) -> u32 { let y = &y; let z = 9; let z = &z; - let y = await!(async { *y + *z }); + let y = async { *y + *z }.await; let a = 10; let a = &a; *x + y + *a