From 62969d525fbd76abec15edf00289ced049b7fa0a Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Mon, 11 Mar 2024 20:01:03 -0700 Subject: [PATCH] Ignore new dead_code warnings in test Since nightly-2024-03-12. warning: struct `S` is never constructed --> tests/test.rs:366:12 | 366 | struct S {} | ^ | = note: `#[warn(dead_code)]` on by default warning: struct `Struct` is never constructed --> tests/test.rs:1492:12 | 1492 | struct Struct; | ^^^^^^ --- tests/test.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test.rs b/tests/test.rs index aae8e96..cbd8e03 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -363,6 +363,7 @@ pub mod issue23 { } } + #[allow(dead_code)] struct S {} #[async_trait] @@ -1489,6 +1490,7 @@ pub mod issue226 { async fn cfg_param_tuple(&self, (left, right): (u8, u8)); } + #[allow(dead_code)] struct Struct; #[async_trait]