diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2024-05-27 09:45:40 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2024-06-03 13:03:53 +0000 |
| commit | 61c4b7f1a701798f01df7a685ee3bb515cb7d9f9 (patch) | |
| tree | 3998cb15e4ffce2550a375fdb53b419159e6697b /compiler/rustc_hir_analysis/src/impl_wf_check.rs | |
| parent | aebe8a7ed3f6b915170df8e9056f2bdbaac4de00 (diff) | |
| download | rust-61c4b7f1a701798f01df7a685ee3bb515cb7d9f9.tar.gz rust-61c4b7f1a701798f01df7a685ee3bb515cb7d9f9.zip | |
Hide some follow-up errors
Diffstat (limited to 'compiler/rustc_hir_analysis/src/impl_wf_check.rs')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/impl_wf_check.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_hir_analysis/src/impl_wf_check.rs b/compiler/rustc_hir_analysis/src/impl_wf_check.rs index 002be61196a..5cc1ec71757 100644 --- a/compiler/rustc_hir_analysis/src/impl_wf_check.rs +++ b/compiler/rustc_hir_analysis/src/impl_wf_check.rs @@ -86,6 +86,8 @@ fn enforce_impl_params_are_constrained( let impl_predicates = tcx.predicates_of(impl_def_id); let impl_trait_ref = tcx.impl_trait_ref(impl_def_id).map(ty::EarlyBinder::instantiate_identity); + impl_trait_ref.error_reported()?; + let mut input_parameters = cgp::parameters_for_impl(tcx, impl_self_ty, impl_trait_ref); cgp::identify_constrained_generic_params( tcx, |
