From 29c5a50935fd70c399048567d1e7b1db573bbf99 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Fri, 26 Jun 2020 21:34:32 -0700 Subject: [PATCH] Suppress unused_attributes warning in test suite This test has multiple #[ignore] attributes in some configurations. $ cargo +beta check --test expandtest warning: unused attribute --> test_suite/tests/expandtest.rs:2:29 | 2 | #[cfg_attr(not(expandtest), ignore)] | ^^^^^^ | = note: `#[warn(unused_attributes)]` on by default --- test_suite/tests/expandtest.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/test_suite/tests/expandtest.rs b/test_suite/tests/expandtest.rs index d7177365..84516970 100644 --- a/test_suite/tests/expandtest.rs +++ b/test_suite/tests/expandtest.rs @@ -1,6 +1,7 @@ #[cfg_attr(target_os = "emscripten", ignore)] #[cfg_attr(not(expandtest), ignore)] #[rustversion::attr(not(nightly), ignore)] +#[allow(unused_attributes)] #[test] fn expandtest() { macrotest::expand("tests/expand/*.rs");