diff --git a/Cargo.lock b/Cargo.lock index 4e1876bf1d24..bdf0e8e4756c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2217,9 +2217,9 @@ dependencies = [ [[package]] name = "libm" -version = "0.2.15" +version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9fbbcab51052fe104eb5e5d351cf728d30a5be1fe14d9be8a3b097481fb97de" +checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981" [[package]] name = "libtest-mimic" diff --git a/Cargo.toml b/Cargo.toml index c37eeae36e4a..07500dcf48fb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -419,7 +419,7 @@ rustc-hash = { version = "2.1.1", default-features = false } libtest-mimic = "0.8.1" semver = { version = "1.0.27", default-features = false } ittapi = "0.4.0" -libm = "0.2.15" +libm = "0.2.16" tokio-rustls = "0.25.0" rustls = "0.22.0" tokio-native-tls = "0.3.1" diff --git a/cranelift/codegen/src/ir/immediates.rs b/cranelift/codegen/src/ir/immediates.rs index f53b2180de37..563e5e42cde7 100644 --- a/cranelift/codegen/src/ir/immediates.rs +++ b/cranelift/codegen/src/ir/immediates.rs @@ -704,25 +704,7 @@ macro_rules! ieee_float { /// Returns the nearest integer to `self`. Rounds half-way cases to the number /// with an even least significant digit. pub fn round_ties_even(self) -> Self { - // TODO: when libm v0.2.16 is published line below can be used instead - // Self::with_float(Libm::<$float_ty>::roundeven(self.$as_float())) - return Self::with_float(self.$as_float().roundeven()); - - trait Roundeven { - fn roundeven(self) -> Self; - } - - impl Roundeven for f32 { - fn roundeven(self) -> Self { - libm::roundevenf(self) - } - } - - impl Roundeven for f64 { - fn roundeven(self) -> Self { - libm::roundeven(self) - } - } + Self::with_float(Libm::<$float_ty>::roundeven(self.$as_float())) } )? } diff --git a/supply-chain/imports.lock b/supply-chain/imports.lock index 4e6b1384689e..4fe72b84c7d4 100644 --- a/supply-chain/imports.lock +++ b/supply-chain/imports.lock @@ -778,8 +778,8 @@ user-id = 55123 user-login = "rust-lang-owner" [[publisher.libm]] -version = "0.2.15" -when = "2025-05-06" +version = "0.2.16" +when = "2026-01-24" user-id = 55123 user-login = "rust-lang-owner"