diff options
| author | Nathan Corbyn <me@nathancorbyn.com> | 2019-02-23 18:39:27 +0000 |
|---|---|---|
| committer | Nathan Corbyn <me@nathancorbyn.com> | 2019-02-24 16:33:12 +0000 |
| commit | 8300f51936149ec43eb063205e4d03c54a308f3c (patch) | |
| tree | fa722c6f5a1cb29ffaec3477aa6b7b18d79e9660 /src/libsyntax/ext | |
| parent | 7f19f161f24c9a02ff8c3f73122d0b015039221f (diff) | |
| download | rust-8300f51936149ec43eb063205e4d03c54a308f3c.tar.gz rust-8300f51936149ec43eb063205e4d03c54a308f3c.zip | |
Deny `async fn` in 2015 edition
Fix style issues and update diagnostic messages Update src/librustc_passes/diagnostics.rs Co-Authored-By: doctorn <me@nathancorbyn.com> Deny nested `async fn` in Rust 2015 edition Deny nested `async fn` in Rust 2015 edition Deny nested `async fn` in Rust 2015 edition
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/build.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ext/build.rs b/src/libsyntax/ext/build.rs index 27b0cfb1630..2f88749ace8 100644 --- a/src/libsyntax/ext/build.rs +++ b/src/libsyntax/ext/build.rs @@ -1017,7 +1017,7 @@ impl<'a> AstBuilder for ExtCtxt<'a> { ast::ItemKind::Fn(self.fn_decl(inputs, ast::FunctionRetTy::Ty(output)), ast::FnHeader { unsafety: ast::Unsafety::Normal, - asyncness: ast::IsAsync::NotAsync, + asyncness: dummy_spanned(ast::IsAsync::NotAsync), constness: dummy_spanned(ast::Constness::NotConst), abi: Abi::Rust, }, |
