-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracking issue for const_patterns_without_partial_eq
lint
#116122
Labels
C-tracking-issue
Category: A tracking issue for an RFC or an unstable feature.
Comments
RalfJung
added
the
C-tracking-issue
Category: A tracking issue for an RFC or an unstable feature.
label
Sep 24, 2023
RalfJung
changed the title
Tracking issue for
Tracking issue for Sep 25, 2023
match_without_partial_eq
lintconst_patterns_without_partial_eq
lint
8 tasks
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Feb 8, 2024
make non-PartialEq-typed consts as patterns a hard error This lint was introduced in rust-lang#115893, for Rust 1.74, so we just had the third stable release where this is shown as a future-compat lint (which is shown for dependencies). Not a single comment or backreference showed up in the tracking issue, rust-lang#116122. So this seems fairly safe to turn into a hard error. Of course we should do a crater run first. This is part of rust-lang#120362.
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this issue
Feb 25, 2024
Rollup merge of rust-lang#120805 - RalfJung:const-pat-partial-eq, r=oli-obk make non-PartialEq-typed consts as patterns a hard error This lint was introduced in rust-lang#115893, for Rust 1.74, so we just had the third stable release where this is shown as a future-compat lint (which is shown for dependencies). Not a single comment or backreference showed up in the tracking issue, rust-lang#116122. So this seems fairly safe to turn into a hard error. Of course we should do a crater run first. This is part of rust-lang#120362. Closes rust-lang#116122.
github-actions bot
pushed a commit
to rust-lang/miri
that referenced
this issue
Feb 26, 2024
make non-PartialEq-typed consts as patterns a hard error This lint was introduced in rust-lang/rust#115893, for Rust 1.74, so we just had the third stable release where this is shown as a future-compat lint (which is shown for dependencies). Not a single comment or backreference showed up in the tracking issue, rust-lang/rust#116122. So this seems fairly safe to turn into a hard error. Of course we should do a crater run first. This is part of rust-lang/rust#120362. Closes rust-lang/rust#116122.
alepez
added a commit
to bluewind-embedded-systems/bw-r-drivers-tc37x
that referenced
this issue
Mar 22, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We used to (accidentally) accept some constants in patterns that don't even implement
PartialEq
. This is an accident and we'd like to hard-reject all such cases in the future. This lint catches those cases.Relevant PRs:
The text was updated successfully, but these errors were encountered: