1
Fork 0

Continue compilation after check_mod_type_wf errors

This commit is contained in:
Oli Scherer 2024-02-09 12:17:55 +00:00
parent bb89df6903
commit 5f6390f947
212 changed files with 2715 additions and 284 deletions

View file

@ -3112,10 +3112,11 @@ impl<'tcx> InferCtxtPrivExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
obligation.param_env,
trait_ref.args.const_at(3),
) else {
span_bug!(
self.dcx().span_delayed_bug(
span,
"Unable to construct rustc_transmute::Assume where it was previously possible"
"Unable to construct rustc_transmute::Assume where it was previously possible",
);
return GetSafeTransmuteErrorAndReason::Silent;
};
match rustc_transmute::TransmuteTypeEnv::new(self.infcx).is_transmutable(