From 23d5478e33ad21b9c32a31b5b75c0f8b7f719e4e Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 11 Mar 2023 14:41:15 -0800 Subject: [PATCH] Fix warning on duplicate test ignore attribute warning: unused attribute --> tests/test_size.rs:27:60 | 27 | #[cfg_attr(not(all(wrap_proc_macro, not(span_locations))), ignore)] | ^^^^^^ | = note: #[warn(unused_attributes)] on by default --- tests/test_size.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_size.rs b/tests/test_size.rs index 338a9dde..86918bba 100644 --- a/tests/test_size.rs +++ b/tests/test_size.rs @@ -24,7 +24,7 @@ fn test_proc_macro2_fallback_span_size_with_locations() { } #[rustversion::attr(before(1.32), ignore)] -#[cfg_attr(not(all(wrap_proc_macro, not(span_locations))), ignore)] +#[rustversion::attr(since(1.32), cfg_attr(not(all(wrap_proc_macro, not(span_locations))), ignore))] #[test] fn test_proc_macro2_wrapper_span_size_without_locations() { assert_eq!(mem::size_of::(), 4);