diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 2cf0ecf8b..4f4b1c20a 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,4 +1,4 @@ [toolchain] -channel = "nightly-2025-12-08" +channel = "nightly-2026-08-07" targets = ["wasm32-unknown-unknown", "wasm32-wasip1"] profile = "default" # include rustfmt, clippy diff --git a/test-no-std/src/main.rs b/test-no-std/src/main.rs index 180a4c6bf..798d729ef 100644 --- a/test-no-std/src/main.rs +++ b/test-no-std/src/main.rs @@ -101,7 +101,7 @@ unsafe impl GlobalAlloc for SimpleAllocator { let mut allocated = 0; if self .remaining - .fetch_update(SeqCst, SeqCst, |mut remaining| { + .try_update(SeqCst, SeqCst, |mut remaining| { if size > remaining { return None; }