We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54ce034 commit 876f698Copy full SHA for 876f698
compiler/rustc_ast/src/mut_visit.rs
@@ -1401,7 +1401,7 @@ pub fn noop_visit_expr<T: MutVisitor>(
1401
}
1402
ExprKind::Closure(box Closure {
1403
binder,
1404
- capture_clause: _,
+ capture_clause,
1405
constness,
1406
asyncness,
1407
movability: _,
@@ -1413,6 +1413,7 @@ pub fn noop_visit_expr<T: MutVisitor>(
1413
vis.visit_closure_binder(binder);
1414
visit_constness(constness, vis);
1415
vis.visit_asyncness(asyncness);
1416
+ vis.visit_capture_by(capture_clause);
1417
vis.visit_fn_decl(fn_decl);
1418
vis.visit_expr(body);
1419
vis.visit_span(fn_decl_span);
0 commit comments