Skip to content

Commit f5b1bce

Browse files
committed
---
yaml --- r: 4833 b: refs/heads/master c: 0ba1037 h: refs/heads/master i: 4831: c6c9fe5 v: v3
1 parent b11da7f commit f5b1bce

File tree

2 files changed

+2
-7
lines changed

2 files changed

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

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -736,14 +736,9 @@ 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-
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-
}
744-
745739
find_pre_post_block(fcx, f.body);
746740

741+
747742
// Treat the tail expression as a return statement
748743
alt f.body.node.expr {
749744
some(tailexpr) { set_postcond_false(fcx.ccx, tailexpr.id); }

0 commit comments

Comments
 (0)