mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
Produce ClosureBinder node in atom.rs
This commit is contained in:
parent
987cd076e2
commit
fb16d3b7f8
@ -563,7 +563,9 @@ fn closure_expr(p: &mut Parser<'_>) -> CompletedMarker {
|
|||||||
let m = p.start();
|
let m = p.start();
|
||||||
|
|
||||||
if p.at(T![for]) {
|
if p.at(T![for]) {
|
||||||
|
let b = p.start();
|
||||||
types::for_binder(p);
|
types::for_binder(p);
|
||||||
|
b.complete(p, CLOSURE_BINDER);
|
||||||
}
|
}
|
||||||
// test const_closure
|
// test const_closure
|
||||||
// fn main() { let cl = const || _ = 0; }
|
// fn main() { let cl = const || _ = 0; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user