Remove a bunch of diagnostic stashing that doesn't do anything

This commit is contained in:
Michael Goulet 2025-01-11 19:22:02 +00:00
parent fb65a3ee57
commit 85c9ce6d79
22 changed files with 177 additions and 185 deletions

View file

@ -575,7 +575,7 @@ fn sanity_check_found_hidden_type<'tcx>(
} else {
let span = tcx.def_span(key.def_id);
let other = ty::OpaqueHiddenType { ty: hidden_ty, span };
Err(ty.build_mismatch_error(&other, key.def_id, tcx)?.emit())
Err(ty.build_mismatch_error(&other, tcx)?.emit())
}
}