diff options
author | Aleksey Kladov <[email protected]> | 2018-08-13 16:40:47 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-13 16:40:47 +0100 |
commit | 7d0c9cf54652c0630bf8f955fc3affb288b5e4cf (patch) | |
tree | 31938c2f1178ff242cf8f9a89e7d17b4a505018e /crates/libsyntax2/src/grammar/expressions | |
parent | c146331b1c92c3a6d58217b61f95e69155a3a4f8 (diff) |
Optional patterns in trait methods
Diffstat (limited to 'crates/libsyntax2/src/grammar/expressions')
-rw-r--r-- | crates/libsyntax2/src/grammar/expressions/atom.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/libsyntax2/src/grammar/expressions/atom.rs b/crates/libsyntax2/src/grammar/expressions/atom.rs index af9f47c5e..e62b16654 100644 --- a/crates/libsyntax2/src/grammar/expressions/atom.rs +++ b/crates/libsyntax2/src/grammar/expressions/atom.rs | |||
@@ -284,7 +284,7 @@ pub(super) fn block_expr(p: &mut Parser) -> CompletedMarker { | |||
284 | // test block_items | 284 | // test block_items |
285 | // fn a() { fn b() {} } | 285 | // fn a() { fn b() {} } |
286 | let m = p.start(); | 286 | let m = p.start(); |
287 | match items::maybe_item(p) { | 287 | match items::maybe_item(p, items::ItemFlavor::Mod) { |
288 | items::MaybeItem::Item(kind) => { | 288 | items::MaybeItem::Item(kind) => { |
289 | m.complete(p, kind); | 289 | m.complete(p, kind); |
290 | } | 290 | } |