Skip to content

Commit 85d5171

Browse files
orlpUrgau
authored andcommitted
Float biteq macros can be unused if test is skipped.
1 parent 18d61bf commit 85d5171

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

library/std/src/f32/tests.rs

+1
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ fn test_is_sign_negative() {
299299
assert!((-f32::NAN).is_sign_negative());
300300
}
301301

302+
#[allow(unused_macros)]
302303
macro_rules! assert_f32_biteq {
303304
($left : expr, $right : expr) => {
304305
let l: &f32 = &$left;

library/std/src/f64/tests.rs

+1
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ fn test_is_sign_negative() {
289289
assert!((-f64::NAN).is_sign_negative());
290290
}
291291

292+
#[allow(unused_macros)]
292293
macro_rules! assert_f64_biteq {
293294
($left : expr, $right : expr) => {
294295
let l: &f64 = &$left;

0 commit comments

Comments
 (0)