Skip to content

Commit 8018fb5

Browse files
committed
---
yaml --- r: 5474 b: refs/heads/master c: 348cd86 h: refs/heads/master v: v3
1 parent c41da2e commit 8018fb5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 0bbde048a414bdf6dcdf7e00cc429bf8d8d2a5f0
2+
refs/heads/master: 348cd86d87521ba6ee74c3f06d13fcccf6b8a7f3

trunk/src/comp/middle/typeck.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1920,7 +1920,8 @@ fn check_expr_with_unifier(fcx: @fn_ctxt, expr: @ast::expr, unify: unifier,
19201920
write::ty_only_fixup(fcx, id, ty::mk_nil(tcx));
19211921
}
19221922
ast::expr_do_while(body, cond) {
1923-
bot = check_expr(fcx, cond) | check_block(fcx, body);
1923+
bot = check_expr_with(fcx, cond, ty::mk_bool(tcx)) |
1924+
check_block(fcx, body);
19241925
write::ty_only_fixup(fcx, id, block_ty(tcx, body));
19251926
}
19261927
ast::expr_alt(expr, arms) {

0 commit comments

Comments
 (0)