about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-08-08 09:20:56 +0000
committerbors <bors@rust-lang.org>2024-08-08 09:20:56 +0000
commit5ccf5432ab9848f390941a6cd29b6468ea842c3e (patch)
treea93de37841513425e9eb2d90bac90a42dcff3d7e /compiler/rustc_pattern_analysis/src
parentbfb10f431d29ddcdb2b50afa59a6e7c1ed3b2f6f (diff)
parent8bcecfff950de9bdcdd5d642523ac337a4c426f8 (diff)
downloadrust-5ccf5432ab9848f390941a6cd29b6468ea842c3e.tar.gz
rust-5ccf5432ab9848f390941a6cd29b6468ea842c3e.zip
Auto merge of #11441 - Jarcho:issue_11365, r=xFrednet
`single_match`: fix checking of explicitly matched enums

fixes #11365

This approach has false-negatives, but fixing them will require a significant amount of additional state tracking. The comment in `add_and_pats` has the explanation.

changelog: `single_match`: correct checking if the match explicitly matches all of an enum's variants.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions