]> git.lizzy.rs Git - rust.git/commitdiff
Revert "Disable warnings for unused function arguments. Temporary hack."
authorTim Chevalier <chevalier@alum.wellesley.edu>
Fri, 19 Aug 2011 08:15:30 +0000 (01:15 -0700)
committerTim Chevalier <chevalier@alum.wellesley.edu>
Fri, 19 Aug 2011 08:15:30 +0000 (01:15 -0700)
This reverts commit 1ec2211a98aac3f4444301f44eba608d2df818c1.

src/comp/middle/tstate/pre_post_conditions.rs

index d03bbea5dde3a2e8285339f262156f162e6c080b..9c54b8f15a34fe3aa5b96e5743f68226902f7a7c 100644 (file)
@@ -736,14 +736,9 @@ fn find_pre_post_fn(fcx: &fn_ctxt, f: &_fn) {
     use_var(fcx, tsconstr_to_node_id(fcx.enclosing.i_return));
     use_var(fcx, tsconstr_to_node_id(fcx.enclosing.i_diverge));
 
-    for a:arg in f.decl.inputs {
-        // FIXME: Hack to avoid warning spew
-        // Just pretend all arguments are used
-        use_var(fcx, a.id);
-    }
-
     find_pre_post_block(fcx, f.body);
 
+
     // Treat the tail expression as a return statement
     alt f.body.node.expr {
       some(tailexpr) { set_postcond_false(fcx.ccx, tailexpr.id); }