about summary refs log tree commit diff
path: root/src/rustc/front
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-08-25 18:38:21 -0700
committerBrian Anderson <banderson@mozilla.com>2012-08-25 18:38:21 -0700
commit09df8f1abfdca35f39a2e013290372552a8f9cc2 (patch)
tree5ea4dc1197fc1f08f11c353bbe2acca135617b1f /src/rustc/front
parent0cece20ea5beb97ce31408a363c01cc34e62424b (diff)
downloadrust-09df8f1abfdca35f39a2e013290372552a8f9cc2.tar.gz
rust-09df8f1abfdca35f39a2e013290372552a8f9cc2.zip
Fix more unused variable warnings
Diffstat (limited to 'src/rustc/front')
-rw-r--r--src/rustc/front/test.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rustc/front/test.rs b/src/rustc/front/test.rs
index d2abe360f67..f36b94055fa 100644
--- a/src/rustc/front/test.rs
+++ b/src/rustc/front/test.rs
@@ -105,7 +105,7 @@ fn fold_item(cx: test_ctxt, &&i: @ast::item, fld: fold::ast_fold) ->
 
     if is_test_fn(i) {
         match i.node {
-          ast::item_fn(decl, purity, _, _) if purity == ast::unsafe_fn => {
+          ast::item_fn(_, purity, _, _) if purity == ast::unsafe_fn => {
             cx.sess.span_fatal(
                 i.span,
                 ~"unsafe functions cannot be used for tests");