Rust 1.100 Ships the Never Type after Ten Years and Five Failed Attempts
Rust’s never type, written !, is the canonical uninhabited type: no value of that type can exist. It describes a computation that cannot produce a normal result, making it possible to express that a path does not return. For example, panic!() does not return a value, and an endless loop never finishes. In Result<T, ! , T represents success while ! says there is no possible error value. The type makes that guarantee visible in an API rather than leaving it implicit. Rust 1.100.0 stabilizes ! after ten years of work and five failed attempts. The release also makes std::convert::Infallible an alias for !. That lets APIs use the never type directly in more places, while a related fallback change may affect existing code during upgrades.
What is Rust’s never type (!), and what does it mean for a computation to never return?
Rust’s never type, written !, is the canonical uninhabited type: no value of that type can exist. It describes a computation that cannot produce a normal result, making it possible to express that a path does not return.
For example, panic!() does not return a value, and an endless loop never finishes. In Result<T, !>, T represents success while ! says there is no possible error value. The type makes that guarantee visible in an API rather than leaving it implicit.
Rust 1.100.0 stabilizes ! after ten years of work and five failed attempts. The release also makes std::convert::Infallible an alias for !. That lets APIs use the never type directly in more places, while a related fallback change may affect existing code during upgrades.
How long did it take Rust to stabilize the never type, and how many earlier attempts failed?
The path to stabilizing Rust’s never type took ten years. The type is written ! and represents computations that never return a value, a useful way to express impossible outcomes in APIs.
The release announcement reports five earlier failed stabilisation attempts before the type finally landed in Rust 1.100.0. Its arrival also makes std::convert::Infallible an alias for !, aligning the existing name with the type it was always intended to represent.
The feature is now stable, but the change has a compatibility consequence: Rust changed the never-type fallback from () to ! for the 2015, 2018, and 2021 editions. Rust 2024 already had that behavior. The release notes describe the impact as largely unnoticeable, while advising developers who encounter problems to update dependencies first. Fixes for widely used crates have already been published.
Why does making Infallible an alias for ! matter for APIs such as Result<T, !>?
Rust 1.100.0 makes std::convert::Infallible an alias for !. The never type is uninhabited, meaning no value of it can exist. An alias connects Rust’s established Infallible name to the type that was always intended to represent that idea.
This matters in APIs that describe outcomes. For example, Result<T, !> says an operation can produce a T on success but has no possible error value. With Infallible aliased to !, existing APIs that use Infallible accept ! transparently, rather than treating them as unrelated types.
The alias arrived alongside stabilization of ! after a decade of work and five failed attempts. To make it work, Rust also changed the never-type fallback from () to ! in the 2015, 2018, and 2021 editions. The release notes call the impact largely unnoticeable, but advise updating dependencies first if an upgrade causes trouble.
What behavior can change when the never-type fallback switches from () to !, and why might more code be marked unreachable?
The fallback determines which type Rust uses when the never type is not explicitly named. Rust 1.100.0 changes that fallback from () to ! for the 2015, 2018, and 2021 editions. Rust 2024 already had the new behavior.
Because ! represents a computation that cannot return a value, choosing it can let Rust identify paths that cannot actually be reached. As a result, more existing code may be flagged as unreachable after upgrading. This is part of making std::convert::Infallible an alias for ! and bringing the older editions in line with Rust 2024.
The release notes describe the change’s impact as largely unnoticeable, but some developers may still encounter issues. Their advice is to update dependencies first; fixes for widely used crates have already been published. The change is a small breaking adjustment included with the stabilization of !, which took ten years and five failed attempts.
How do custom allocators let Rust collections such as Vec and Box use different sources of memory?
An allocator is the component that provides memory to a collection or boxed value. Rust 1.100.0 stabilizes the core of allocator_api, including the Allocator trait, so library authors can define custom allocators for Vec and Box. This gives those types an alternative to relying only on the default memory source.
For example, a library author can use the trait to define which allocator a Vec or Box uses. The key mechanism is the new stable Allocator trait, which connects the collection to the custom allocator. The release presents this core as the foundation for the Allocators 1.0 project goal.
The design is not the last word on allocation. Critics have argued that Rust lacks Zig’s granular allocation control because the current design cannot support inline storage: moves can invalidate internal pointers. Even so, the stabilized core is seen as a workable starting point for broader collections support.
How can Cargo’s publish-age cooldown reduce exposure to malicious releases, and why should security fixes be allowed through immediately?
Cargo’s global-min-publish-age setting is an opt-in defence against malicious crate releases. It holds newly published versions back for a configurable window, giving a release time to be assessed before dependency resolution selects it. For example, the article shows a setting that waits three days.
That delay should not block urgent security updates. A developer commenting on Hacker News argued that normal updates should cool down while security advisories are patched immediately. The point is to make both goals part of dependency resolution itself, rather than letting a general cooldown obstruct a security fix.
The release notes identify a known caveat: cargo install ignores the setting, and an update could even downgrade a forced security fix. The cooldown sits alongside GitHub’s Dependabot cooldown protection, but builds the age check into dependency resolution. The caveat shows why the release’s security workflow still needs careful handling.
How does Rust’s type system help prevent memory errors without relying on a garbage collector?
Rust is designed to provide memory safety without relying on a garbage collector. The article connects this goal to strong type safety, which helps developers build reliable and efficient software. It does not explain the mechanism in detail, so the following is established Rust background.
Rust’s ownership and borrowing rules help control how values are used and when their memory can be released. The compiler checks these rules, including whether references remain valid. This lets programs manage memory without asking a garbage collector to routinely find and reclaim unused objects.
The release article presents these guarantees as part of Rust’s wider design, alongside its package ecosystem through Cargo. It does not suggest that every memory-related mistake is impossible, nor does it discuss specific checks. Its central point is that Rust aims to combine memory safety with efficient software and no garbage collector, supported by strong type safety.
This brief was written by AI from the original reporting and checked by other models. Names, figures and quotes come from the source; read it for full context.
Read more in the JupiteX app
Pulse is free. New stories every 4 hours, each one broken into the questions that explain it.
Or read more news on the web