about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-07-06 07:45:09 +0200
committerMazdak Farrokhzad <twingoow@gmail.com>2019-07-30 10:55:45 +0200
commit99c4a94fa57775346ae108122675261bdbfd97e0 (patch)
treeb16e363294614424bfaa58c23a7b9ff40a776337
parent581f2cbfe98b9dae3e353c3a9a5a7aa422bc4954 (diff)
downloadrust-99c4a94fa57775346ae108122675261bdbfd97e0.tar.gz
rust-99c4a94fa57775346ae108122675261bdbfd97e0.zip
Update error_codes re. await_macro removal.
-rw-r--r--src/librustc/error_codes.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/librustc/error_codes.rs b/src/librustc/error_codes.rs
index 1edadbd5bae..b3eee7c3464 100644
--- a/src/librustc/error_codes.rs
+++ b/src/librustc/error_codes.rs
@@ -2088,11 +2088,11 @@ generator can be constructed.
 Erroneous code example:
 
 ```edition2018,compile-fail,E0698
-#![feature(futures_api, async_await, await_macro)]
+#![feature(async_await)]
 async fn bar<T>() -> () {}
 
 async fn foo() {
-  await!(bar());  // error: cannot infer type for `T`
+    bar().await; // error: cannot infer type for `T`
 }
 ```
 
@@ -2101,12 +2101,12 @@ To fix this you must bind `T` to a concrete type such as `String`
 so that a generator can then be constructed:
 
 ```edition2018
-#![feature(futures_api, async_await, await_macro)]
+#![feature(async_await)]
 async fn bar<T>() -> () {}
 
 async fn foo() {
-  await!(bar::<String>());
-  //          ^^^^^^^^ specify type explicitly
+  bar::<String>().await;
+  //   ^^^^^^^^ specify type explicitly
 }
 ```
 "##,