Skip to content

Commit 0310e34

Browse files
ICH: Take CaptureClause of closure expressions into account.
1 parent 500ab35 commit 0310e34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_incremental/calculate_svh/svh_visitor.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ enum SawExprComponent<'a> {
275275
SawExprIf,
276276
SawExprWhile,
277277
SawExprMatch,
278-
SawExprClosure,
278+
SawExprClosure(CaptureClause),
279279
SawExprBlock,
280280
SawExprAssign,
281281
SawExprAssignOp(hir::BinOp_),
@@ -304,7 +304,7 @@ fn saw_expr<'a>(node: &'a Expr_) -> SawExprComponent<'a> {
304304
ExprWhile(..) => SawExprWhile,
305305
ExprLoop(_, id) => SawExprLoop(id.map(|id| id.node.as_str())),
306306
ExprMatch(..) => SawExprMatch,
307-
ExprClosure(..) => SawExprClosure,
307+
ExprClosure(cc, _, _, _) => SawExprClosure(cc),
308308
ExprBlock(..) => SawExprBlock,
309309
ExprAssign(..) => SawExprAssign,
310310
ExprAssignOp(op, _, _) => SawExprAssignOp(op.node),

0 commit comments

Comments
 (0)