mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-26 14:40:32 +00:00
move f16/f128 const fn under f16/f128 feature gate
This commit is contained in:
parent
7bac9cd747
commit
7f390d6fe0
2 changed files with 4 additions and 4 deletions
|
@ -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() };
|
||||
|
|
|
@ -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) };
|
||||
|
|
Loading…
Reference in a new issue