about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2025-02-20 02:21:58 +0000
committerMichael Goulet <michael@errs.io>2025-03-03 23:09:42 +0000
commit9d3d5a7fbb9d28d91e2d19d2b0bf5bc5af5b038c (patch)
tree51cf69163e6eeb73ffd67a9d5a69273ef5b3670b /compiler/rustc_hir_analysis
parentc566318a782030a33f370d7490d7bdac9d8bfca4 (diff)
downloadrust-9d3d5a7fbb9d28d91e2d19d2b0bf5bc5af5b038c.tar.gz
rust-9d3d5a7fbb9d28d91e2d19d2b0bf5bc5af5b038c.zip
Check signature WF when lowering MIR body
Diffstat (limited to 'compiler/rustc_hir_analysis')
-rw-r--r--compiler/rustc_hir_analysis/src/check/wfcheck.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/check/wfcheck.rs b/compiler/rustc_hir_analysis/src/check/wfcheck.rs
index 8199585ee61..54aaf889b40 100644
--- a/compiler/rustc_hir_analysis/src/check/wfcheck.rs
+++ b/compiler/rustc_hir_analysis/src/check/wfcheck.rs
@@ -201,7 +201,7 @@ fn check_well_formed(tcx: TyCtxt<'_>, def_id: LocalDefId) -> Result<(), ErrorGua
         hir::Node::ImplItem(item) => check_impl_item(tcx, item),
         hir::Node::ForeignItem(item) => check_foreign_item(tcx, item),
         hir::Node::OpaqueTy(_) => Ok(crate::check::check::check_item_type(tcx, def_id)),
-        _ => unreachable!(),
+        _ => unreachable!("{node:?}"),
     };
 
     if let Some(generics) = node.generics() {