Skip to content

Commit a0653c5

Browse files
authored
Rollup merge of rust-lang#131256 - RalfJung:f16-f128-const, r=ibraheemdev
move f16/f128 const fn under f16/f128 feature gate The `*_const` features were added to work around rust-lang#129656, which should not be needed any more.
2 parents a1beaa1 + 7f390d6 commit a0653c5

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)