diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2024-06-17 08:53:45 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2024-06-19 04:41:57 +0000 |
| commit | 1cb75dc4a92ef131b2b88bd9faeaa1d39c3d5f4e (patch) | |
| tree | 8cf09b834cdf6390d911a7951b77d0825f6c9a6c | |
| parent | 3594a19f2ae792cf99a1a78a5454e52cfd7affde (diff) | |
| download | rust-1cb75dc4a92ef131b2b88bd9faeaa1d39c3d5f4e.tar.gz rust-1cb75dc4a92ef131b2b88bd9faeaa1d39c3d5f4e.zip | |
Remove a hack that isn't needed anymore
| -rw-r--r-- | compiler/rustc_hir_analysis/src/check/wfcheck.rs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/compiler/rustc_hir_analysis/src/check/wfcheck.rs b/compiler/rustc_hir_analysis/src/check/wfcheck.rs index b206d8046ee..a188c1b12ae 100644 --- a/compiler/rustc_hir_analysis/src/check/wfcheck.rs +++ b/compiler/rustc_hir_analysis/src/check/wfcheck.rs @@ -119,16 +119,7 @@ where let errors = wfcx.select_all_or_error(); if !errors.is_empty() { - let err = infcx.err_ctxt().report_fulfillment_errors(errors); - if tcx.dcx().has_errors().is_some() { - return Err(err); - } else { - // HACK(oli-obk): tests/ui/specialization/min_specialization/specialize_on_type_error.rs - // causes an delayed bug during normalization, without reporting an error, so we need - // to act as if no error happened, in order to let our callers continue and report an - // error later in check_impl_items_against_trait. - return Ok(()); - } + return Err(infcx.err_ctxt().report_fulfillment_errors(errors)); } debug!(?assumed_wf_types); |
