Uplift clippy::mem_discriminant_non_enum into rustc #83899
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
The clippy::mem_discriminant_non_enum lint seems like it should be directly in rustc. The lint prevents doing something like:
which causes unspecified behavior.
The text was updated successfully, but these errors were encountered: