Skip to content

Commit

Permalink
move f16/f128 const fn under f16/f128 feature gate
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Oct 5, 2024
1 parent 7bac9cd commit 7f390d6
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 7f390d6

Please sign in to comment.