Skip to content

Commit 0569d65

Browse files
committed
---
yaml --- r: 3504 b: refs/heads/master c: 6a74253 h: refs/heads/master v: v3
1 parent 2a74767 commit 0569d65

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
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: d8db9a0fe1356ebdd702665e1844822a8a884b23
2+
refs/heads/master: 6a74253d60821df84ea18e84441f0d83298f0592

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,10 @@ fn find_pre_post_loop(&fn_ctxt fcx, &@local l, &@expr index, &block body,
176176
find_pre_post_block(fcx, body);
177177
auto v_init = rec(id=l.node.id, c=ninit(l.node.ident));
178178
relax_precond_block(fcx, bit_num(fcx, v_init) as node_id, body);
179+
180+
// Hack: for-loop index variables are frequently ignored,
181+
// so we pretend they're used
182+
use_var(fcx, l.node.id);
179183

180184
auto loop_precond =
181185
seq_preconds(fcx,

0 commit comments

Comments
 (0)