rust/src/libsyntax_ext
Mazdak Farrokhzad f84a8cf28a
Rollup merge of #58678 - doctorn:refuse-async-fn-2015-edition, r=varkor
Deny `async fn` in 2015 edition

This commit prevents code using `async fn` from being compiled in Rust 2015 edition.

Compiling code of the form:

```rust
async fn foo() {}
```

Will now result in the error:

```
error[E0670]: `async fn` is not permitted in the 2015 edition
 --> async.rs:1:1
  |
1 | async fn foo() {}
  | ^^^^^

error: aborting due to error

For more information about an error, try `rustc --explain E0670`.
```

This resolves #58652 and also resolves #53714.

r? @varkor
2019-02-27 13:32:21 +01:00
..
2019-02-18 09:46:33 +11:00
2019-02-04 21:49:54 +09:00
2019-02-04 21:49:54 +09:00
2019-02-04 21:49:54 +09:00
2019-02-04 21:49:54 +09:00
2019-02-04 21:49:54 +09:00
2019-02-10 23:42:32 +00:00
2019-02-04 21:49:54 +09:00
2019-02-13 00:31:51 +09:00
2019-02-24 21:59:44 +09:00
2019-02-24 16:33:12 +00:00
2019-02-04 21:49:54 +09:00