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 da0ba2f commit c4ae6c2Copy full SHA for c4ae6c2
compiler/rustc_mir_build/src/thir/pattern/_match.rs
@@ -2113,6 +2113,9 @@ fn pat_constructor<'tcx>(
2113
match value.ty.kind() {
2114
ty::Float(_) => Some(FloatRange(value, value, RangeEnd::Included)),
2115
ty::Ref(_, t, _) if t.is_str() => Some(Str(value)),
2116
+ // All constants that can be structurally matched have already been expanded
2117
+ // into the corresponding `Pat`s by `const_to_pat`. Constants that remain are
2118
+ // opaque.
2119
_ => Some(Opaque),
2120
}
2121
0 commit comments