Update cfg to fix warnings

This commit is contained in:
Trevor Gross 2024-05-06 03:23:36 -05:00 committed by Amanieu d'Antras
parent 286944e479
commit 54d96150b5
5 changed files with 5 additions and 2 deletions

View file

@ -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

View file

@ -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

View file

@ -1,5 +1,6 @@
#![allow(unused_macros)]
#[cfg(not(target_arch = "powerpc64"))]
use testcrate::*;
macro_rules! cmp {

View file

@ -155,7 +155,7 @@ macro_rules! conv {
stringify!($fn)
);
}
});
})
};
}

View file

@ -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;