aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src/grammar/items/traits.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/libsyntax2/src/grammar/items/traits.rs')
-rw-r--r--crates/libsyntax2/src/grammar/items/traits.rs4
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}