Skip to content- Sources: primary, discussion
- Summary: The release announcement states that Rust 1.99.0 stabilizes variadic functions using the C ABI, so a Rust function can take a variable argument list rather than only call one. The same release stabilizes the raw-pointer layout queries
mem::size_of_val_raw, mem::align_of_val_raw, and Layout::for_value_raw, along with Vec::into_parts and Vec::from_parts, Box::into_non_null and Box::from_non_null, std::fs::set_times, and IntoIterator for boxed arrays. The Box::leak guidance now recommends against unleaking by round-tripping the pointer, because that interacts badly with current and future optimizations and with upcoming custom allocators. - Why it matters: Rust could already call C variadics, and defining them removes a reason to keep a C shim at FFI boundaries that expose printf-style entry points.