From 7d8114fde44777e90d1aec5a51c07fbaed72bd29 Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Mon, 6 May 2024 03:23:36 -0500 Subject: [PATCH] Update `cfg` to fix warnings --- src/float/mod.rs | 1 + src/int/mod.rs | 1 + testcrate/tests/conv.rs | 2 +- testcrate/tests/misc.rs | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/float/mod.rs b/src/float/mod.rs index a82dd7d2..b0fbe8af 100644 --- a/src/float/mod.rs +++ b/src/float/mod.rs @@ -14,6 +14,7 @@ pub mod trunc; public_test_dep! { /// Trait for some basic operations on floats +#[allow(dead_code)] pub(crate) trait Float: Copy + core::fmt::Debug diff --git a/src/int/mod.rs b/src/int/mod.rs index 509f9fda..3ef71da8 100644 --- a/src/int/mod.rs +++ b/src/int/mod.rs @@ -13,6 +13,7 @@ pub use self::leading_zeros::__clzsi2; public_test_dep! { /// Trait for some basic operations on integers +#[allow(dead_code)] pub(crate) trait Int: Copy + core::fmt::Debug diff --git a/testcrate/tests/conv.rs b/testcrate/tests/conv.rs index 84828dbf..5cff0120 100644 --- a/testcrate/tests/conv.rs +++ b/testcrate/tests/conv.rs @@ -155,7 +155,7 @@ macro_rules! conv { stringify!($fn) ); } - }); + }) }; } diff --git a/testcrate/tests/misc.rs b/testcrate/tests/misc.rs index 402d202a..cdc37e2a 100644 --- a/testcrate/tests/misc.rs +++ b/testcrate/tests/misc.rs @@ -1,7 +1,6 @@ // makes configuration easier #![allow(unused_macros)] -use compiler_builtins::float::Float; use testcrate::*; /// Make sure that the the edge case tester and randomized tester don't break, and list examples of @@ -138,6 +137,7 @@ macro_rules! pow { #[test] fn float_pow() { use compiler_builtins::float::pow::{__powidf2, __powisf2}; + use compiler_builtins::float::Float; pow!( f32, 1e-4, __powisf2;