Skip to content

Commit 9cf7810

Browse files
committed
bug! message nit
1 parent bd4197c commit 9cf7810

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_mir_build/src/thir/pattern/const_to_pat.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ impl<'tcx> ConstToPat<'tcx> {
132132
| ty::ConstKind::Unevaluated(_)
133133
| ty::ConstKind::Error(_)
134134
| ty::ConstKind::Expr(_) => {
135-
span_bug!(self.span, "unevaluated const in `to_pat`: {:?}", c.kind())
135+
span_bug!(self.span, "unexpected const in `to_pat`: {:?}", c.kind())
136136
}
137137
ty::ConstKind::Value(valtree) => self
138138
.recur(valtree, cv.ty(), mir_structural_match_violation.unwrap_or(false))

0 commit comments

Comments
 (0)