Skip to content

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

Draft
ehuss wants to merge 1 commit into
rust-lang:masterfrom
ehuss:never-fallback-stabilization
Draft

Update never-type-fallback for never type stabilization#384
ehuss wants to merge 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
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.

3 participants