Announcing Rust 1.99.0 | Rust Blog
Oct. 1, 2026 · The Rust Release Team
The Rust team is happy to announce a new version of Rust, 1.99.0. Rust is a programming language empowering everyone to build reliable and efficient software.
If you have a previous version of Rust installed via `rustup`, you can get 1.99.0 with:
$ rustup update stableIf you don't have it already, you can get rustup from the appropriate page on our website, and check out the detailed release notes for 1.99.0.
If you'd like to help us out by testing future releases, you might consider updating locally to use the beta channel (`rustup default beta`) or the nightly channel (`rustup default nightly`). Please report any bugs you might come across!
[](https://blog.rust-lang.org/2026/10/01/Rust-1.99.0/#what-s-in-1-99-0-stable)What's in 1.99.0 stable
[](https://blog.rust-lang.org/2026/10/01/Rust-1.99.0/#extern-c-variadics)extern "C" variadics
Rust 1.99.0 stabilizes defining C-ABI variadic functions with "C" and "C-unwind" ABIs. Variadic functions defined this way use a variable argument list (`...`) and accept an arbitrary number of arguments. Rust could already call externally-defined variadic functions (e.g., `libc::printf`). With Rust 1.99, these functions can now be written in Rust itself:
/// SAFETY: must be called with (at least) 2 i32 arguments.
unsafe extern "C" fn sum(mut args: ...) -> i32 {
// SAFETY: guaranteed by the caller.
let a = unsafe { args.next_arg::<i32>() };
let b = unsafe { args.next_arg::<i32>() };
a + b
}fn foo() -> i32 {
unsafe { sum(0i32, 2i32) }
}
The type of `...` is VaList, which is ABI-compatible with the C `va_list` type across targets. What types can be read from a `VaList` is guarded by the VaArgSafe trait.
For more details on c-variadic functions, see the Reference. This release also stabilizes support for defining naked variadic functions with non-"C" ABIs, which must be written via inline assembly.
[](https://blog.rust-lang.org/2026/10/01/Rust-1.99.0/#layout-information-from-raw-pointers)Layout information from raw pointers
This release settles the safety requirements for retrieving the size and alignment on raw pointers to both `Sized` (trivially safe, already possible on stable) and non-`Sized` types.
This is done by stabilizing three functions:
- Layout::for\_value\_raw
- mem::size\_of\_val\_raw
- mem::align\_of\_val\_raw
- [IntoIterator for Box<\[T; N\]>](https://doc.rust-lang.org/stable/std/iter/trait.IntoIterator.html#impl-IntoIterator-for-Box%3C%5BT;+N%5D,+A%3E)
- [IntoIterator for &Box<\[T; N\]>](https://doc.rust-lang.org/stable/std/iter/trait.IntoIterator.html#impl-IntoIterator-for-%26Box%3C%5BT;+N%5D,+A%3E)
- [IntoIterator for &mut Box<\[T; N\]>](https://doc.rust-lang.org/stable/std/iter/trait.IntoIterator.html#impl-IntoIterator-for-%26mut+Box%3C%5BT;+N%5D,+A%3E)
- VecDeque::retain\_back
- core::ffi::VaList
- Box::into\_non\_null
- Box::from\_non\_null
- Vec::into\_parts
- Vec::from\_parts
- core::mem::size\_of\_val\_raw
- core::mem::align\_of\_val\_raw
- core::alloc::Layout::for\_value\_raw
- String::from\_utf8\_lossy\_owned
- string::FromUtf8Error::into\_utf8\_lossy
- FusedIterator for StepBy<I>
- std::fs::set\_times
- std::fs::set\_times\_nofollow
[](https://blog.rust-lang.org/2026/10/01/Rust-1.99.0/#recommend-against-round-trip-unleaking-after-box-leak)Recommend against round-trip unleaking after `Box::leak`
While there are no changes to the language semantics in Rust 1.99, we have updated the documentation on Box::leak to recommend against patterns that later deallocate that memory. This was done because such code was found to have problematic interactions with current and future potential compiler optimizations, and is especially problematic with the upcoming stabilization of custom allocators. Instead, Box::into\_non\_null should be preferred.
This guidance also applies to other `leak` functions in the standard library.
[](https://blog.rust-lang.org/2026/10/01/Rust-1.99.0/#stabilized-apis)Stabilized APIs
[](https://blog.rust-lang.org/2026/10/01/Rust-1.99.0/#other-changes)Other changes
Check out everything that changed in Rust, Cargo, and Clippy.
[](https://blog.rust-lang.org/2026/10/01/Rust-1.99.0/#contributors-to-1-99-0)Contributors to 1.99.0
Many people came together to create Rust 1.99.0. We couldn't have done it without all of you. Thanks!
