diff options
| author | Ralf Jung <post@ralfj.de> | 2024-10-04 17:43:27 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-10-05 10:13:18 +0200 |
| commit | 7f390d6fe0f55039c73a67d1ecd8e1ae7393f823 (patch) | |
| tree | 54ee7166a2b299da465cfa652c2e4a4840d91971 | |
| parent | 7bac9cd7470d263e4366a59043616a15595bf093 (diff) | |
| download | rust-7f390d6fe0f55039c73a67d1ecd8e1ae7393f823.tar.gz rust-7f390d6fe0f55039c73a67d1ecd8e1ae7393f823.zip | |
move f16/f128 const fn under f16/f128 feature gate
| -rw-r--r-- | tests/ui/transmute_float_to_int.fixed | 4 | ||||
| -rw-r--r-- | tests/ui/transmute_float_to_int.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/ui/transmute_float_to_int.fixed b/tests/ui/transmute_float_to_int.fixed index 83814ca43b9..075a198918a 100644 --- a/tests/ui/transmute_float_to_int.fixed +++ b/tests/ui/transmute_float_to_int.fixed @@ -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() }; diff --git a/tests/ui/transmute_float_to_int.rs b/tests/ui/transmute_float_to_int.rs index 64d6e917203..12541b2f7cf 100644 --- a/tests/ui/transmute_float_to_int.rs +++ b/tests/ui/transmute_float_to_int.rs @@ -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) }; |
