bug!
message nit
This commit is contained in:
parent
bd4197cbf9
commit
9cf7810078
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ impl<'tcx> ConstToPat<'tcx> {
|
||||||
| ty::ConstKind::Unevaluated(_)
|
| ty::ConstKind::Unevaluated(_)
|
||||||
| ty::ConstKind::Error(_)
|
| ty::ConstKind::Error(_)
|
||||||
| ty::ConstKind::Expr(_) => {
|
| ty::ConstKind::Expr(_) => {
|
||||||
span_bug!(self.span, "unevaluated const in `to_pat`: {:?}", c.kind())
|
span_bug!(self.span, "unexpected const in `to_pat`: {:?}", c.kind())
|
||||||
}
|
}
|
||||||
ty::ConstKind::Value(valtree) => self
|
ty::ConstKind::Value(valtree) => self
|
||||||
.recur(valtree, cv.ty(), mir_structural_match_violation.unwrap_or(false))
|
.recur(valtree, cv.ty(), mir_structural_match_violation.unwrap_or(false))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue