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/test.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax_ext/test.rs b/src/libsyntax_ext/test.rs index 37186246548..f4b625f8ea2 100644 --- a/src/libsyntax_ext/test.rs +++ b/src/libsyntax_ext/test.rs @@ -257,7 +257,7 @@ fn has_test_signature(cx: &ExtCtxt<'_>, i: &ast::Item) -> bool { ); return false } - if header.asyncness.is_async() { + if header.asyncness.node.is_async() { sd.span_err( i.span, "async functions cannot be used for tests" |
