We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
bug!
1 parent bd4197c commit 9cf7810Copy full SHA for 9cf7810
compiler/rustc_mir_build/src/thir/pattern/const_to_pat.rs
@@ -132,7 +132,7 @@ impl<'tcx> ConstToPat<'tcx> {
132
| ty::ConstKind::Unevaluated(_)
133
| ty::ConstKind::Error(_)
134
| ty::ConstKind::Expr(_) => {
135
- span_bug!(self.span, "unevaluated const in `to_pat`: {:?}", c.kind())
+ span_bug!(self.span, "unexpected const in `to_pat`: {:?}", c.kind())
136
}
137
ty::ConstKind::Value(valtree) => self
138
.recur(valtree, cv.ty(), mir_structural_match_violation.unwrap_or(false))
0 commit comments