mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 14:51:48 +00:00
recognize async move
This commit is contained in:
parent
849d7428aa
commit
abe96a4765
2 changed files with 3 additions and 3 deletions
|
@ -92,10 +92,10 @@ pub(super) fn atom_expr(p: &mut Parser, r: Restrictions) -> Option<(CompletedMar
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
ASYNC_KW if la == L_CURLY => {
|
||||
ASYNC_KW if la == L_CURLY || la == MOVE_KW => {
|
||||
let m = p.start();
|
||||
p.bump();
|
||||
p.eat(MOVE_KW);
|
||||
block_expr(p, Some(m))
|
||||
}
|
||||
MATCH_KW => match_expr(p),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue