Rust's never type finally lands after 10 years and 5 failed attempts

Rust 1.100

Rust's never type finally lands after 10 years and 5 failed attempts

Rust 1.100.0 stabilizes the never type `!` after a decade and five failed attempts, letting it be named anywhere and making `Infallible` an alias for it. The release also ships the core `Allocator` API for custom allocators on `Vec` and `Box`, the `DropGuard` helper for running closures on every exit path, `conjure_zst` for safely creating zero-sized types, Cargo's unused-dependency warnings, and min-publish-age dependency cooldowns.

After 10 years and 5 failed stabilization attempts, the never type is finally stable!
  1. nirinor

    Woohoo, that's a release! My personal favorites:

    - Stabilize never type

    - Stabilize custom allocators

    - Introduced minimum publish age configurations, also known as dependency cooldowns. When the relevant config is set, the resolver ignores versions published more recently than that, unless they are already in Cargo.lock. (RFC 3923) docs #17335

    - cargo-install: now uses the existing lockfile in the .crate tarball by default. --locked in cargo install becomes a no-op. #17388

  2. n_u

    > Cargo now reports unused dependencies to users, e.g.

    > warning: unused dependency `tracing-subscriber`

    --> Cargo.toml:23:1

    |

    23 | tracing-subscriber.workspace = true

    | ^^^^^^^^^^^^^^^^^^

    |

    = note: `cargo::unused_dependencies` is set to `warn` by default

    help: consider removing the dependency on `tracing-subscriber`

    Heck yes

  3. ammar_az

    This release is so big that multiple useful stabilized API aren't event mentioned in the blog post like:

    - bool::toggle() https://doc.rust-lang.org/stable/std/primitive.bool.html#met...

    - Box::map() https://doc.rust-lang.org/stable/std/boxed/struct.Box.html#m...

    - str::trim_prefix(), str::trim_suffix, Path::trim_prefix()

  4. jadbox

    Is the compiler any faster now? Compiling takes forever. I'm also tired of always having to do "cargo clean" everyday to clear out 90gb of temp files.

  5. steveklabnik

    A monumental release. Thanks to everyone who worked so hard on all of these long-term features that are finally landing.

  6. kinfish

    looks g. but not sure if this consists an improvements on compile-time resource like space and time.

  7. ashvardanian

    This is by far my most long-awaited Rust release! The kind of “memory safety” I fight with most in Systems Programming isn’t use-after-free, but keeping things running under memory starvation. Having standard containers abort on allocation failure always seemed wrong to me, especially in an ecosystem that got so many other things right!

    Huge thanks to everyone making this happen! I’ve only been on the consuming end so far, but hopefully I’ll find something useful to contribute myself. Pointer provenance might be a nice next challenge :)

  8. levkk

    DropGuard is nice. This is basically `defer` in Go I think.

  9. mkl

    > cargo install ignores the minimum publish age, for both the installed crate and its dependencies

    Why is that? It seems like that makes min-publish-age much less effective.

  10. ComputerGuru

    It would probably be better to wait for the official release blog post for submission to HN, no?

More from this day

2026-11-12