Rust 1.100 stabilizes the never type and adds DropGuard for scope-exit cleanup
Rust 1.100.0 has been released, stabilizing the never type (!), which had remained experimental since 2016 under issue #35121. The release also makes Infallible an alias for !, so both spellings refer to the same type. A reviewer compiling the same test file on 1.99.0 got three errors and on 1.100.0 got none. The release further adds core::mem::DropGuard, a helper that runs a closure when dropped, and includes a breaking change to never type fallback in pre-2024 editions that the reviewer could not reproduce in testing.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in