Skip to content

Commit 47d9534

Browse files
authored
Produce ClosureBinder node in atom.rs
1 parent deeb464 commit 47d9534

File tree

1 file changed

+2
-0
lines changed
  • src/tools/rust-analyzer/crates/parser/src/grammar/expressions

1 file changed

+2
-0
lines changed

src/tools/rust-analyzer/crates/parser/src/grammar/expressions/atom.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,9 @@ fn closure_expr(p: &mut Parser<'_>) -> CompletedMarker {
563563
let m = p.start();
564564

565565
if p.at(T![for]) {
566+
let b = p.start();
566567
types::for_binder(p);
568+
b.complete(p, CLOSURE_BINDER);
567569
}
568570
// test const_closure
569571
// fn main() { let cl = const || _ = 0; }

0 commit comments

Comments
 (0)