diff options
author | Aleksey Kladov <[email protected]> | 2020-06-09 09:50:25 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-06-09 09:50:25 +0100 |
commit | 2785362a1f9a3436072152e5499ac5d7c4d98cc4 (patch) | |
tree | 9f5f089ef662841075b54be7831c377f2243aec1 /crates | |
parent | e38685cb48a44c3321922f5f7228072b503d2973 (diff) |
Update crates/ra_parser/src/grammar/items.rs
Diffstat (limited to 'crates')
-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; |