From bc7b842ca30bad3d5707b8fa386e56f82049e9ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Justus=20Fl=C3=BCgel?= Date: Mon, 10 Mar 2025 21:58:10 +0100 Subject: [PATCH] Fix unused code warnings in tests (using black_box) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Justus Flügel --- tests/test_derive_attr.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/test_derive_attr.rs b/tests/test_derive_attr.rs index 19487a0..44c520a 100644 --- a/tests/test_derive_attr.rs +++ b/tests/test_derive_attr.rs @@ -159,6 +159,9 @@ fn transparent_generic() { Custom, } + std::hint::black_box(Combined::::Other(1)); + std::hint::black_box(Combined::::Custom); + assert_impl_diagnostic::>(); } @@ -260,6 +263,9 @@ fn generic_diagnostic_source() { Custom, } + std::hint::black_box(Combined::::Other(1)); + std::hint::black_box(Combined::::Custom); + assert_impl_diagnostic::>(); } @@ -273,5 +279,8 @@ fn generic_not_influencing_default() { Custom, } + std::hint::black_box(Combined::::Other(1)); + std::hint::black_box(Combined::::Custom); + assert_impl_diagnostic::>(); }