Skip to content

Commit

Permalink
ICH: Take CaptureClause of closure expressions into account.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwoerister committed Sep 1, 2016
1 parent 500ab35 commit 0310e34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc_incremental/calculate_svh/svh_visitor.rs
Expand Up @@ -275,7 +275,7 @@ enum SawExprComponent<'a> {
SawExprIf,
SawExprWhile,
SawExprMatch,
SawExprClosure,
SawExprClosure(CaptureClause),
SawExprBlock,
SawExprAssign,
SawExprAssignOp(hir::BinOp_),
Expand Down Expand Up @@ -304,7 +304,7 @@ fn saw_expr<'a>(node: &'a Expr_) -> SawExprComponent<'a> {
ExprWhile(..) => SawExprWhile,
ExprLoop(_, id) => SawExprLoop(id.map(|id| id.node.as_str())),
ExprMatch(..) => SawExprMatch,
ExprClosure(..) => SawExprClosure,
ExprClosure(cc, _, _, _) => SawExprClosure(cc),
ExprBlock(..) => SawExprBlock,
ExprAssign(..) => SawExprAssign,
ExprAssignOp(op, _, _) => SawExprAssignOp(op.node),
Expand Down

0 comments on commit 0310e34

Please sign in to comment.