Revert "Disable warnings for unused function arguments. Temporary hack."
This reverts commit 1ec2211a98.
This commit is contained in:
parent
1ec2211a98
commit
0ba1037834
1 changed files with 1 additions and 6 deletions
|
|
@ -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); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue