1
Fork 0

Rollup merge of #121113 - oli-obk:track_errors10, r=compiler-errors

Continue compilation even if inherent impl checks fail

We should not be hiding errors behind unrelated errors
This commit is contained in:
Guillaume Gomez 2024-02-15 14:33:02 +01:00 committed by GitHub
commit e878439d39
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 244 additions and 60 deletions

View file

@ -178,8 +178,9 @@ pub fn check_crate(tcx: TyCtxt<'_>) -> Result<(), ErrorGuaranteed> {
let _ = tcx.ensure().coherent_trait(trait_def_id);
}
// these queries are executed for side-effects (error reporting):
res.and(tcx.ensure().crate_inherent_impls(()))
.and(tcx.ensure().crate_inherent_impls_overlap_check(()))
let _ = tcx.ensure().crate_inherent_impls(());
let _ = tcx.ensure().crate_inherent_impls_overlap_check(());
res
})?;
if tcx.features().rustc_attrs {