Skip to content

Commit d664112

Browse files
committed
---
yaml --- r: 4832 b: refs/heads/master c: 1ec2211 h: refs/heads/master v: v3
1 parent cec0154 commit d664112

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-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: b02f1f46e550e8f87df6c3ec7f9721b1f4edc958
2+
refs/heads/master: 1ec2211a98aac3f4444301f44eba608d2df818c1

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,8 +736,13 @@ fn find_pre_post_fn(fcx: &fn_ctxt, f: &_fn) {
736736
use_var(fcx, tsconstr_to_node_id(fcx.enclosing.i_return));
737737
use_var(fcx, tsconstr_to_node_id(fcx.enclosing.i_diverge));
738738

739-
find_pre_post_block(fcx, f.body);
739+
for a:arg in f.decl.inputs {
740+
// FIXME: Hack to avoid warning spew
741+
// Just pretend all arguments are used
742+
use_var(fcx, a.id);
743+
}
740744

745+
find_pre_post_block(fcx, f.body);
741746

742747
// Treat the tail expression as a return statement
743748
alt f.body.node.expr {

0 commit comments

Comments
 (0)