mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-01 20:31:59 +00:00
Produce ClosureBinder node in atom.rs
This commit is contained in:
parent
987cd076e2
commit
fb16d3b7f8
1 changed files with 2 additions and 0 deletions
|
|
@ -563,7 +563,9 @@ fn closure_expr(p: &mut Parser<'_>) -> CompletedMarker {
|
|||
let m = p.start();
|
||||
|
||||
if p.at(T![for]) {
|
||||
let b = p.start();
|
||||
types::for_binder(p);
|
||||
b.complete(p, CLOSURE_BINDER);
|
||||
}
|
||||
// test const_closure
|
||||
// fn main() { let cl = const || _ = 0; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue