The Rust team has released Rust 1.100.0, a milestone version number for the systems programming language. The headline change is the stabilization of the never type, after ten years of work and five failed stabilization attempts, according to the official announcement on the Rust blog.
Anyone with an existing Rust installation can get the new version with a single command: rustup update stable. The release also completes a long-running project goal tied to the never type, and the team invites developers to test upcoming versions through the beta and nightly channels.
Rust 1.100 and the never type finally stable
The never type has been observable in Rust for years, appearing in the return type of diverging functions written as -> !. What Rust 1.100 adds is the ability to name it anywhere, including generic parameters, the blog explains.
The team warns of one breaking change. Because Infallible becomes an alias to the never type, the fallback for inference moved from () to ! in pre-2024 editions. The blog says this should be largely unnoticeable, but it may affect rare cases, such as ignoring the result of a function returning a generic parameter, and could make the compiler flag more code as unreachable.
- The never type, written !, is the canonical uninhabited type. It represents computations that never produce a value, such as return, break, and std::process::exit.
- Rust allows a never-to-any coercion, so ! can be turned into any other type, which is why code like None => return passes type checking inside a match.
- Developers can now name the never type anywhere, including in generic positions like Result<T, !>, which was not allowed before.
- Infallible is now an alias to the never type, so older APIs built on Infallible remain compatible with !.
- The never type fallback changes from () to ! in the 2015, 2018 and 2021 editions, matching what edition 2024 already does.


