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
..
deriving Remove LazyTokenStream. 2019-02-18 09:46:33 +11:00
asm.rs Rename rustc_errors dependency in rust 2018 crates 2019-02-13 00:28:52 +09:00
assert.rs Rename rustc_errors dependency in rust 2018 crates 2019-02-13 00:28:52 +09:00
Cargo.toml Rename rustc_errors dependency in rust 2018 crates 2019-02-13 00:28:52 +09:00
cfg.rs Rename rustc_errors dependency in rust 2018 crates 2019-02-13 00:28:52 +09:00
compile_error.rs libsyntax_ext => 2018 2019-02-04 21:49:54 +09:00
concat_idents.rs libsyntax_ext => 2018 2019-02-04 21:49:54 +09:00
concat.rs libsyntax_ext => 2018 2019-02-04 21:49:54 +09:00
diagnostics.rs libsyntax_ext => 2018 2019-02-04 21:49:54 +09:00
env.rs libsyntax_ext => 2018 2019-02-04 21:49:54 +09:00
format_foreign.rs rustc: doc comments 2019-02-10 23:42:32 +00:00
format.rs Rollup merge of #58273 - taiki-e:rename-dependency, r=matthewjasper 2019-02-13 04:37:04 +01:00
global_asm.rs Rename rustc_errors dependency in rust 2018 crates 2019-02-13 00:28:52 +09:00
lib.rs Rollup merge of #58273 - taiki-e:rename-dependency, r=matthewjasper 2019-02-13 04:37:04 +01:00
log_syntax.rs libsyntax_ext => 2018 2019-02-04 21:49:54 +09:00
proc_macro_decls.rs Rename rustc_errors dependency in rust 2018 crates 2019-02-13 00:28:52 +09:00
proc_macro_impl.rs Cleanup imports 2019-02-13 00:31:51 +09:00
proc_macro_server.rs Use ? in some macros 2019-02-24 21:59:44 +09:00
test_case.rs Use Rc<[Symbol]> instead of Vec<Symbol> to reduce # of allocs 2019-02-11 15:08:17 +01:00
test.rs Deny async fn in 2015 edition 2019-02-24 16:33:12 +00:00
trace_macros.rs libsyntax_ext => 2018 2019-02-04 21:49:54 +09:00