mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Fix parsing of _ = x
in closure body
This commit is contained in:
parent
21e61bee8b
commit
ed48bd8b9d
4 changed files with 36 additions and 1 deletions
|
@ -288,7 +288,7 @@ fn expr_bp(
|
|||
}
|
||||
|
||||
const LHS_FIRST: TokenSet =
|
||||
atom::ATOM_EXPR_FIRST.union(TokenSet::new(&[T![&], T![*], T![!], T![.], T![-]]));
|
||||
atom::ATOM_EXPR_FIRST.union(TokenSet::new(&[T![&], T![*], T![!], T![.], T![-], T![_]]));
|
||||
|
||||
fn lhs(p: &mut Parser<'_>, r: Restrictions) -> Option<(CompletedMarker, BlockLike)> {
|
||||
let m;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue