diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2024-01-31 16:24:07 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2024-01-31 16:51:42 +0000 |
| commit | a6b1e433dad909d24c931a289b2daa493804769d (patch) | |
| tree | f9d3108013c653d3cdce867c50335e408a4f1c92 /compiler/rustc_trait_selection/src | |
| parent | f7531f18b8279141d1afc20d016c82e6c627eab0 (diff) | |
| download | rust-a6b1e433dad909d24c931a289b2daa493804769d.tar.gz rust-a6b1e433dad909d24c931a289b2daa493804769d.zip | |
Remove a has_errors check that only hides errors after unrelated items have errored.
Diffstat (limited to 'compiler/rustc_trait_selection/src')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/error_reporting/type_err_ctxt_ext.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/error_reporting/type_err_ctxt_ext.rs b/compiler/rustc_trait_selection/src/traits/error_reporting/type_err_ctxt_ext.rs index 4f372eff823..c437b97b03e 100644 --- a/compiler/rustc_trait_selection/src/traits/error_reporting/type_err_ctxt_ext.rs +++ b/compiler/rustc_trait_selection/src/traits/error_reporting/type_err_ctxt_ext.rs @@ -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, |
