Skip to content

Update never-type-fallback for never type stabilization - #384

Merged
traviscross merged 1 commit into
rust-lang:masterfrom
ehuss:never-fallback-stabilization
Aug 25, 2026
Merged

Update never-type-fallback for never type stabilization#384
traviscross merged 1 commit into
rust-lang:masterfrom
ehuss:never-fallback-stabilization

Conversation

@ehuss

@ehuss ehuss commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

This updates for the never type stabilization proposed in rust-lang/rust#155499.

cc @WaffleLapkin

This is a draft because the version number will need to be updated.

Comment on lines +5 to +12
> [!NOTE]
> The changes previously documented in this chapter are no longer edition-specific as of Rust CURRENT_RUSTC_VERSION.
>
> Never type (`!`) to any type ("never-to-any") coercions now fall back to never type (`!`) rather than to unit type (`()`) on all editions.
>
> The `dependency_on_unit_never_type_fallback` lint, which handled the migration, has also been removed.
>
> The description of "never-to-any" coercions below is kept for informational purposes.

@WaffleLapkin WaffleLapkin Jun 12, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to leave the rest of the document as-is, instead only mentioning here that it applies only to Rust < CURRENT_RUSTC_VERSION?

View changes since the review

@rustbot

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-author Status: Waiting on the PR author label Aug 18, 2026
@ehuss
ehuss force-pushed the never-fallback-stabilization branch from f796c48 to c540ad6 Compare August 18, 2026 20:08
@ehuss
ehuss force-pushed the never-fallback-stabilization branch from c540ad6 to 08bd176 Compare August 25, 2026 19:48
@ehuss
ehuss marked this pull request as ready for review August 25, 2026 19:48
@rustbot rustbot added the S-waiting-on-review Status: The marked PR is awaiting some action (such as code changes) from the PR author label Aug 25, 2026
@traviscross
traviscross added this pull request to the merge queue Aug 25, 2026
@traviscross

Copy link
Copy Markdown
Contributor

Thanks @ehuss. Thanks @WaffleLapkin.

Merged via the queue into rust-lang:master with commit ab8544a Aug 25, 2026
2 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: The marked PR is awaiting some action (such as code changes) from the PR author label Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-author Status: Waiting on the PR author

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants