aboutsummaryrefslogtreecommitdiff
path: root/src/parser/grammar/items/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser/grammar/items/mod.rs')
-rw-r--r--src/parser/grammar/items/mod.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/parser/grammar/items/mod.rs b/src/parser/grammar/items/mod.rs
index c88e39596..73fd5235a 100644
--- a/src/parser/grammar/items/mod.rs
+++ b/src/parser/grammar/items/mod.rs
@@ -149,6 +149,18 @@ fn item(p: &mut Parser) {
149 } 149 }
150 } 150 }
151 } 151 }
152 IMPL_KW => {
153 traits::impl_item(p);
154 IMPL_ITEM
155 }
156 // test default_impl
157 // default impl Foo {}
158 IDENT if p.at_contextual_kw("default") && la == IMPL_KW => {
159 p.bump_remap(DEFAULT_KW);
160 traits::impl_item(p);
161 IMPL_ITEM
162 }
163
152 FN_KW => { 164 FN_KW => {
153 fn_item(p); 165 fn_item(p);
154 FN_ITEM 166 FN_ITEM