Skip to content

Commit 7f390d6

Browse files
committed
move f16/f128 const fn under f16/f128 feature gate
1 parent 7bac9cd commit 7f390d6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/ui/transmute_float_to_int.fixed

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#![warn(clippy::transmute_float_to_int)]
22
#![allow(clippy::missing_transmute_annotations)]
3-
#![feature(f128, f128_const)]
4-
#![feature(f16, f16_const)]
3+
#![feature(f128)]
4+
#![feature(f16)]
55

66
fn float_to_int() {
77
let _: u32 = unsafe { 1f32.to_bits() };

tests/ui/transmute_float_to_int.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#![warn(clippy::transmute_float_to_int)]
22
#![allow(clippy::missing_transmute_annotations)]
3-
#![feature(f128, f128_const)]
4-
#![feature(f16, f16_const)]
3+
#![feature(f128)]
4+
#![feature(f16)]
55

66
fn float_to_int() {
77
let _: u32 = unsafe { std::mem::transmute(1f32) };

0 commit comments

Comments
 (0)