f84a8cf28a
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 |
||
---|---|---|
.. | ||
deriving | ||
asm.rs | ||
assert.rs | ||
Cargo.toml | ||
cfg.rs | ||
compile_error.rs | ||
concat_idents.rs | ||
concat.rs | ||
diagnostics.rs | ||
env.rs | ||
format_foreign.rs | ||
format.rs | ||
global_asm.rs | ||
lib.rs | ||
log_syntax.rs | ||
proc_macro_decls.rs | ||
proc_macro_impl.rs | ||
proc_macro_server.rs | ||
test_case.rs | ||
test.rs | ||
trace_macros.rs |