Closed rustbot closed 2 weeks ago
This may or may not want to incorporate notes for https://github.com/rust-lang/rust/issues/129031.
@Nadrieril: What do you think?
cc @rust-lang/lang
Should I edit the OP? I'm not sure how this works.
Yes. I've revised the release note section a bit to not reference the semi-internal name (min_exhaustive_patterns) which we try to stay away from in favor of something more user-facing.
This issue tracks the release notes text for #122792.
Release notes text:
The section title will be de-duplicated by the release team with other release notes issues. Prefer to use the standard titles from previous releases. More than one section can be included if needed.
Release blog section (if any, leave blank if no section is expected):
This is particularly useful in combination with the never type
!
, but also works with other empty types such a variantless enum (enum Void {}
).For reasons related to uninitialized values and unsafe code, this behavior is not allowed if the empty type is accessed through a reference, pointer, or union field:
To avoid interfering with crates that wish to support several rust versions, these branches are not yet warned as "unreachable", despite the fact that they can be removed.