Skip to content

Commit 23c9f9c

Browse files
committed
---
yaml --- r: 5069 b: refs/heads/master c: 03ddc8f h: refs/heads/master i: 5067: 56856ad v: v3
1 parent 1c52fed commit 23c9f9c

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
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: 7c02517f758a20e8d5893c8b2024fbf87f7a0447
2+
refs/heads/master: 03ddc8fdd358b0785a6bb635277336812ddbcc6a

trunk/src/comp/middle/typeck.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1606,12 +1606,10 @@ fn check_expr_with_unifier(fcx: &@fn_ctxt, expr: &@ast::expr, unify: &unifier,
16061606
if supplied_arg_count == 1u {
16071607
~" was"
16081608
} else { ~"s were" }]);
1609-
// HACK: extend the arguments list with dummy arguments to
1609+
// HACK: build an arguments list with dummy arguments to
16101610
// check against
1611-
let dummy = {mode: ty::mo_val, ty: ty::mk_nil(fcx.ccx.tcx)};
1612-
while vec::len(arg_tys) < supplied_arg_count {
1613-
arg_tys += [dummy];
1614-
}
1611+
let dummy = {mode: ty::mo_val, ty: ty::mk_bot(fcx.ccx.tcx)};
1612+
arg_tys = vec::init_elt(dummy, supplied_arg_count);
16151613
}
16161614

16171615
// Check the arguments.

0 commit comments

Comments
 (0)