From 9cf7810078d045e2262c3ea08b9e2804664c53b1 Mon Sep 17 00:00:00 2001 From: Oli Scherer Date: Wed, 31 May 2023 12:15:04 +0000 Subject: [PATCH] `bug!` message nit --- compiler/rustc_mir_build/src/thir/pattern/const_to_pat.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_mir_build/src/thir/pattern/const_to_pat.rs b/compiler/rustc_mir_build/src/thir/pattern/const_to_pat.rs index 481befa3618..7976b148f75 100644 --- a/compiler/rustc_mir_build/src/thir/pattern/const_to_pat.rs +++ b/compiler/rustc_mir_build/src/thir/pattern/const_to_pat.rs @@ -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))