use DefineOpaqueTypes::Yes in rustdoc

Since we have a `DefiningAnchor::Error`, we will reject registering hidden types already
This commit is contained in:
Oli Scherer 2024-02-21 10:43:50 +00:00
parent b54d72264a
commit 150448d2e0

View File

@ -47,7 +47,7 @@ impl<'a, 'tcx> BlanketImplFinder<'a, 'tcx> {
// Require the type the impl is implemented on to match // Require the type the impl is implemented on to match
// our type, and ignore the impl if there was a mismatch. // our type, and ignore the impl if there was a mismatch.
let Ok(eq_result) = infcx.at(&traits::ObligationCause::dummy(), param_env).eq( let Ok(eq_result) = infcx.at(&traits::ObligationCause::dummy(), param_env).eq(
DefineOpaqueTypes::No, DefineOpaqueTypes::Yes,
impl_trait_ref.self_ty(), impl_trait_ref.self_ty(),
impl_ty, impl_ty,
) else { ) else {