Skip to content

Commit 3910b11

Browse files
committed
Update cfg to fix warnings
1 parent 7d5c66a commit 3910b11

File tree

5 files changed

+5
-2
lines changed

5 files changed

+5
-2
lines changed

src/float/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ pub mod trunc;
1414

1515
public_test_dep! {
1616
/// Trait for some basic operations on floats
17+
#[allow(dead_code)]
1718
pub(crate) trait Float:
1819
Copy
1920
+ core::fmt::Debug

src/int/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ pub use self::leading_zeros::__clzsi2;
1313

1414
public_test_dep! {
1515
/// Trait for some basic operations on integers
16+
#[allow(dead_code)]
1617
pub(crate) trait Int:
1718
Copy
1819
+ core::fmt::Debug

testcrate/tests/cmp.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#![allow(unused_macros)]
22

3+
#[cfg(not(target_arch = "powerpc64"))]
34
use testcrate::*;
45

56
macro_rules! cmp {

testcrate/tests/conv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ macro_rules! conv {
155155
stringify!($fn)
156156
);
157157
}
158-
});
158+
})
159159
};
160160
}
161161

testcrate/tests/misc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// makes configuration easier
22
#![allow(unused_macros)]
33

4-
use compiler_builtins::float::Float;
54
use testcrate::*;
65

76
/// 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 {
138137
#[test]
139138
fn float_pow() {
140139
use compiler_builtins::float::pow::{__powidf2, __powisf2};
140+
use compiler_builtins::float::Float;
141141

142142
pow!(
143143
f32, 1e-4, __powisf2;

0 commit comments

Comments
 (0)