Remove a has_errors check that only hides errors after unrelated items have errored.

This commit is contained in:
Oli Scherer 2024-01-31 16:24:07 +00:00
parent f7531f18b8
commit a6b1e433da
14 changed files with 89 additions and 22 deletions

View file

@ -2624,9 +2624,6 @@ impl<'tcx> InferCtxtPrivExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
if let Some(e) = self.tainted_by_errors() {
return e;
}
if let Some(e) = self.dcx().has_errors() {
return e;
}
self.emit_inference_failure_err(
obligation.cause.body_id,