diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-08-21 11:52:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-21 11:52:25 +0200 |
| commit | 67e39ed51c6fbfb0994f57167f0d9861b4b80c37 (patch) | |
| tree | dc6501399bdfaefd70363e9f0eac89141290a5ff /src/libsyntax/parse/parser | |
| parent | b6556744b51345e686908fbb66bc1fc1665e588b (diff) | |
| parent | 7ee4f1da8c75b44501c01fb3e754c1732dad76c3 (diff) | |
| download | rust-67e39ed51c6fbfb0994f57167f0d9861b4b80c37.tar.gz rust-67e39ed51c6fbfb0994f57167f0d9861b4b80c37.zip | |
Rollup merge of #63759 - Centril:parse-default-async-fn, r=petrochenkov
Allow 'default async fn' to parse. - Parse default async fn. Fixes #63716. (`cherry-pick`ed from 3rd commit in https://github.com/rust-lang/rust/pull/63749.) r? @petrochenkov
Diffstat (limited to 'src/libsyntax/parse/parser')
| -rw-r--r-- | src/libsyntax/parse/parser/item.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax/parse/parser/item.rs b/src/libsyntax/parse/parser/item.rs index 72819c99660..03d7e922123 100644 --- a/src/libsyntax/parse/parser/item.rs +++ b/src/libsyntax/parse/parser/item.rs @@ -825,6 +825,7 @@ impl<'a> Parser<'a> { self.is_keyword_ahead(1, &[ kw::Impl, kw::Const, + kw::Async, kw::Fn, kw::Unsafe, kw::Extern, |
