mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 23:12:02 +00:00
use DefineOpaqueTypes::Yes
in rustdoc
Since we have a `DefiningAnchor::Error`, we will reject registering hidden types already
This commit is contained in:
parent
b54d72264a
commit
150448d2e0
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user