Skip to content

Commit 336be1d

Browse files
committed
Fix build breakage
1 parent 948172b commit 336be1d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/rustc/middle/typeck/check.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1475,11 +1475,10 @@ fn check_expr_with_unifier(fcx: @fn_ctxt,
14751475
capture::check_capture_clause(tcx, expr.id, cap_clause);
14761476
}
14771477
ast::expr_fn_block(decl, body, cap_clause) {
1478+
// Take the prototype from the expected type, but default to block:
14781479
let proto = unpack_expected(fcx, expected, |sty|
14791480
alt sty { ty::ty_fn({proto, _}) { some(proto) } _ { none } }
14801481
).get_default(ast::proto_box);
1481-
// Take the prototype from the expected type, but default to block:
1482-
let proto = proto_1.get_default(ast::proto_box);
14831482
check_expr_fn(fcx, expr, proto, decl, body, false, expected);
14841483
capture::check_capture_clause(tcx, expr.id, cap_clause);
14851484
}

0 commit comments

Comments
 (0)