Skip to content

Commit cb6fdd5

Browse files
committed
---
yaml --- r: 5542 b: refs/heads/master c: 345b5a4 h: refs/heads/master v: v3
1 parent 85f59cf commit cb6fdd5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-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: 37cf7b92c894f08733235883b200deced9723a2d
2+
refs/heads/master: 345b5a47bdf4f3ebdcc61c9f3f49a86cf357d025

trunk/src/comp/middle/tstate/collect_locals.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,11 @@ fn mk_fn_info(ccx: crate_ctxt, f: _fn, tp: [ty_param], f_sp: span,
138138
{constrs: res_map,
139139

140140
// add 2 to account for the i_return and i_diverge constraints
141+
// FIXME the 1u here is a kludge to make bug #913's impact somewhat
142+
// smaller. it should be removed once the bug is really fixed
141143
num_constraints:
142144
vec::len(*cx.cs) + vec::len(f.decl.constraints) +
143-
vec::len(f.decl.inputs) + 2u,
145+
vec::len(f.decl.inputs) + 2u + 1u,
144146
cf: f.decl.cf,
145147
i_return: ninit(id, name),
146148
i_diverge: ninit(diverges_id, diverges_name),

0 commit comments

Comments
 (0)