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/items/traits.rs | |
parent | c146331b1c92c3a6d58217b61f95e69155a3a4f8 (diff) |
Optional patterns in trait methods
Diffstat (limited to 'crates/libsyntax2/src/grammar/items/traits.rs')
-rw-r--r-- | crates/libsyntax2/src/grammar/items/traits.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/libsyntax2/src/grammar/items/traits.rs b/crates/libsyntax2/src/grammar/items/traits.rs index 53a636f6c..daecaff5c 100644 --- a/crates/libsyntax2/src/grammar/items/traits.rs +++ b/crates/libsyntax2/src/grammar/items/traits.rs | |||
@@ -20,7 +20,7 @@ pub(super) fn trait_def(p: &mut Parser) { | |||
20 | // fn bar(&self); | 20 | // fn bar(&self); |
21 | // } | 21 | // } |
22 | while !p.at(EOF) && !p.at(R_CURLY) { | 22 | while !p.at(EOF) && !p.at(R_CURLY) { |
23 | item_or_macro(p, true); | 23 | item_or_macro(p, true, ItemFlavor::Trait); |
24 | } | 24 | } |
25 | p.expect(R_CURLY); | 25 | p.expect(R_CURLY); |
26 | } | 26 | } |
@@ -55,7 +55,7 @@ pub(super) fn impl_item(p: &mut Parser) { | |||
55 | // fn bar(&self) {} | 55 | // fn bar(&self) {} |
56 | // } | 56 | // } |
57 | while !p.at(EOF) && !p.at(R_CURLY) { | 57 | while !p.at(EOF) && !p.at(R_CURLY) { |
58 | item_or_macro(p, true); | 58 | item_or_macro(p, true, ItemFlavor::Mod); |
59 | } | 59 | } |
60 | p.expect(R_CURLY); | 60 | p.expect(R_CURLY); |
61 | } | 61 | } |