@@ -335,7 +335,7 @@ enum BadTestSignature {
335
335
fn is_test_fn ( cx : & TestCtxt , i : & ast:: Item ) -> bool {
336
336
let has_test_attr = attr:: contains_name ( & i. attrs , "test" ) ;
337
337
338
- fn has_test_signature ( cx : & TestCtxt , i : & ast:: Item ) -> HasTestSignature {
338
+ fn has_test_signature ( _cx : & TestCtxt , i : & ast:: Item ) -> HasTestSignature {
339
339
let has_should_panic_attr = attr:: contains_name ( & i. attrs , "should_panic" ) ;
340
340
match i. node {
341
341
ast:: ItemKind :: Fn ( ref decl, _, _, _, ref generics, _) => {
@@ -394,9 +394,9 @@ fn is_test_fn(cx: &TestCtxt, i: &ast::Item) -> bool {
394
394
fn is_bench_fn ( cx : & TestCtxt , i : & ast:: Item ) -> bool {
395
395
let has_bench_attr = attr:: contains_name ( & i. attrs , "bench" ) ;
396
396
397
- fn has_bench_signature ( cx : & TestCtxt , i : & ast:: Item ) -> bool {
397
+ fn has_bench_signature ( _cx : & TestCtxt , i : & ast:: Item ) -> bool {
398
398
match i. node {
399
- ast:: ItemKind :: Fn ( ref decl, _, _, _, ref generics , _) => {
399
+ ast:: ItemKind :: Fn ( ref decl, _, _, _, _ , _) => {
400
400
// NB: inadequate check, but we're running
401
401
// well before resolve, can't get too deep.
402
402
decl. inputs . len ( ) == 1
0 commit comments