Skip to content

Commit

Permalink
Rollup merge of #131256 - RalfJung:f16-f128-const, r=ibraheemdev
Browse files Browse the repository at this point in the history
move f16/f128 const fn under f16/f128 feature gate

The `*_const` features were added to work around rust-lang/rust#129656, which should not be needed any more.
  • Loading branch information
matthiaskrgr authored Oct 5, 2024
2 parents a1beaa1 + 7f390d6 commit a0653c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/ui/transmute_float_to_int.fixed
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![warn(clippy::transmute_float_to_int)]
#![allow(clippy::missing_transmute_annotations)]
#![feature(f128, f128_const)]
#![feature(f16, f16_const)]
#![feature(f128)]
#![feature(f16)]

fn float_to_int() {
let _: u32 = unsafe { 1f32.to_bits() };
Expand Down
4 changes: 2 additions & 2 deletions tests/ui/transmute_float_to_int.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![warn(clippy::transmute_float_to_int)]
#![allow(clippy::missing_transmute_annotations)]
#![feature(f128, f128_const)]
#![feature(f16, f16_const)]
#![feature(f128)]
#![feature(f16)]

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

0 comments on commit a0653c5

Please sign in to comment.