1
Fork 0

Check signature WF when lowering MIR body

This commit is contained in:
Michael Goulet 2025-02-20 02:21:58 +00:00
parent c566318a78
commit 9d3d5a7fbb
9 changed files with 60 additions and 3 deletions

View file

@ -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() {