Make ExprKind::Closure a struct variant.
This commit is contained in:
@@ -2340,7 +2340,7 @@ impl<'tcx> Visitor<'tcx> for CheckAttrVisitor<'tcx> {
|
||||
|
||||
fn visit_expr(&mut self, expr: &'tcx hir::Expr<'tcx>) {
|
||||
let target = match expr.kind {
|
||||
hir::ExprKind::Closure(..) => Target::Closure,
|
||||
hir::ExprKind::Closure { .. } => Target::Closure,
|
||||
_ => Target::Expression,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user