Produce ClosureBinder node in atom.rs

This commit is contained in:
Arthur Baars 2025-05-30 22:38:31 +02:00 committed by GitHub
parent 987cd076e2
commit fb16d3b7f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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; }