Remove a has_errors check that only hides errors after unrelated items have errored.
This commit is contained in:
parent
f7531f18b8
commit
a6b1e433da
14 changed files with 89 additions and 22 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue