1
Fork 0

bug! message nit

This commit is contained in:
Oli Scherer 2023-05-31 12:15:04 +00:00
parent bd4197cbf9
commit 9cf7810078

View file

@ -132,7 +132,7 @@ impl<'tcx> ConstToPat<'tcx> {
| ty::ConstKind::Unevaluated(_)
| ty::ConstKind::Error(_)
| 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
.recur(valtree, cv.ty(), mir_structural_match_violation.unwrap_or(false))