summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src/usefulness.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-02-25 17:05:20 +0100
committerGitHub <noreply@github.com>2024-02-25 17:05:20 +0100
commitc99902e2f907154c9d38caca6f3a73e17f7785ba (patch)
treeb84fa257824e583723ceb5efaea6b5859039229b /compiler/rustc_pattern_analysis/src/usefulness.rs
parente13f4548747fe2e54255f6284d077b7beafdaed5 (diff)
parent5b7786cd1d246fd0bbe748c8690fb99b1134d2be (diff)
downloadrust-c99902e2f907154c9d38caca6f3a73e17f7785ba.tar.gz
rust-c99902e2f907154c9d38caca6f3a73e17f7785ba.zip
Rollup merge of #120805 - RalfJung:const-pat-partial-eq, r=oli-obk
make non-PartialEq-typed consts as patterns a hard error

This lint was introduced in https://github.com/rust-lang/rust/pull/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, https://github.com/rust-lang/rust/issues/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 https://github.com/rust-lang/rust/issues/120362.
Closes https://github.com/rust-lang/rust/issues/116122.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/usefulness.rs')
0 files changed, 0 insertions, 0 deletions