]> git.lizzy.rs Git - rust.git/commitdiff
Remove await_macro
authorYuki Okushi <huyuumi.dev@gmail.com>
Wed, 31 Jul 2019 07:42:38 +0000 (16:42 +0900)
committerYuki Okushi <huyuumi.dev@gmail.com>
Wed, 31 Jul 2019 07:42:38 +0000 (16:42 +0900)
tests/run-pass/async-fn.rs

index 8a0ac875f54d62ada8ce3e0c44e643efb7259c8d..5c916473b580493b2040dc408b84881d2a2b699b 100644 (file)
@@ -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