We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d77c85 commit 62c1a64Copy full SHA for 62c1a64
compiler/rustc_mir_build/src/thir/pattern/deconstruct_pat.rs
@@ -989,7 +989,6 @@ impl ConstructorSet {
989
}
990
991
992
- let seen_any_non_wildcard = !(split.is_empty() && seen.is_empty());
993
match self {
994
ConstructorSet::Single => {
995
if seen.is_empty() {
@@ -1074,7 +1073,7 @@ impl ConstructorSet {
1074
1073
1075
if !missing.is_empty() {
1076
let report_when_all_missing = is_top_level && !matches!(self, Self::Integers { .. });
1077
- if seen_any_non_wildcard || report_when_all_missing {
+ if !split.is_empty() || report_when_all_missing {
1078
split.push(Missing);
1079
} else {
1080
split.push(Wildcard);
0 commit comments