Add comment
This commit is contained in:
parent
da0ba2f645
commit
c4ae6c2bb9
1 changed files with 3 additions and 0 deletions
|
@ -2113,6 +2113,9 @@ fn pat_constructor<'tcx>(
|
|||
match value.ty.kind() {
|
||||
ty::Float(_) => Some(FloatRange(value, value, RangeEnd::Included)),
|
||||
ty::Ref(_, t, _) if t.is_str() => Some(Str(value)),
|
||||
// All constants that can be structurally matched have already been expanded
|
||||
// into the corresponding `Pat`s by `const_to_pat`. Constants that remain are
|
||||
// opaque.
|
||||
_ => Some(Opaque),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue