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 b258a65 commit 75e732dCopy full SHA for 75e732d
src/librustc_mir_build/hair/pattern/_match.rs
@@ -2359,7 +2359,7 @@ fn specialize_one_pattern<'p, 'tcx>(
2359
2360
PatKind::Variant { adt_def, variant_index, ref subpatterns, .. } => {
2361
let variant = &adt_def.variants[variant_index];
2362
- if constructor == Variant(variant.def_id) {
+ if constructor == &Variant(variant.def_id) {
2363
let is_non_exhaustive = cx.is_foreign_non_exhaustive_variant(pat.ty, variant);
2364
Some(patterns_for_variant(
2365
cx,
0 commit comments