diff options
Diffstat (limited to 'crates/ra_parser')
-rw-r--r-- | crates/ra_parser/src/grammar/items.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_parser/src/grammar/items.rs b/crates/ra_parser/src/grammar/items.rs index 56cfb509d..97642bc24 100644 --- a/crates/ra_parser/src/grammar/items.rs +++ b/crates/ra_parser/src/grammar/items.rs | |||
@@ -126,8 +126,7 @@ pub(super) fn maybe_item(p: &mut Parser, m: Marker, flavor: ItemFlavor) -> Resul | |||
126 | // impl T for Foo { | 126 | // impl T for Foo { |
127 | // default unsafe fn foo() {} | 127 | // default unsafe fn foo() {} |
128 | // } | 128 | // } |
129 | let sk = p.nth(2); | 129 | if p.nth(2) == T![impl] || p.nth(2) == T![fn] { |
130 | if sk == T![impl] || sk == T![fn] { | ||
131 | p.bump_remap(T![default]); | 130 | p.bump_remap(T![default]); |
132 | p.bump(T![unsafe]); | 131 | p.bump(T![unsafe]); |
133 | has_mods = true; | 132 | has_mods = true; |