A lightweight WebAssembly runtime that is fast, secure, and standards-compliant
Update libm and simplify where it's used (#12425)
SSDcf6e4f6e6c99
diff --git a/Cargo.lock b/Cargo.lockindex 0b0029b153..59369c9a8e 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -2224,9 +2224,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.tomlindex a23ec3d974..c1def7301c 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.rsindex f53b2180de..563e5e42cd 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.lockindex 4a4d65570a..27cb2b25f5 100644--- a/supply-chain/imports.lock+++ b/supply-chain/imports.lock@@ -791,8 +791,8 @@ user-id = 55123user-login = "rust-lang-owner"[[publisher.libm]]-version = "0.2.15"-when = "2025-05-06"+version = "0.2.16"+when = "2026-01-24"user-id = 55123user-login = "rust-lang-owner"