mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 04:53:34 +00:00
Update crates/ra_parser/src/grammar/items.rs
This commit is contained in:
parent
e38685cb48
commit
2785362a1f
1 changed files with 1 additions and 2 deletions
|
@ -126,8 +126,7 @@ pub(super) fn maybe_item(p: &mut Parser, m: Marker, flavor: ItemFlavor) -> Resul
|
||||||
// impl T for Foo {
|
// impl T for Foo {
|
||||||
// default unsafe fn foo() {}
|
// default unsafe fn foo() {}
|
||||||
// }
|
// }
|
||||||
let sk = p.nth(2);
|
if p.nth(2) == T![impl] || p.nth(2) == T![fn] {
|
||||||
if sk == T![impl] || sk == T![fn] {
|
|
||||||
p.bump_remap(T![default]);
|
p.bump_remap(T![default]);
|
||||||
p.bump(T![unsafe]);
|
p.bump(T![unsafe]);
|
||||||
has_mods = true;
|
has_mods = true;
|
||||||
|
|
Loading…
Reference in a new issue