Skip to content

Commit

Permalink
Update cfg to fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed May 6, 2024
1 parent 3ce34cc commit 7d8114f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/float/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/int/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion testcrate/tests/conv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ macro_rules! conv {
stringify!($fn)
);
}
});
})
};
}

Expand Down
2 changes: 1 addition & 1 deletion testcrate/tests/misc.rs
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 7d8114f

Please sign in to comment.