1
Fork 0

Revert "When checking whether an impl applies, constrain hidden types of opaque types."

This reverts commit 29a630eb72.
This commit is contained in:
Oli Scherer 2024-06-11 06:49:12 +00:00
parent fe55c0091d
commit 6cca6da126
25 changed files with 120 additions and 171 deletions

View file

@ -2563,7 +2563,7 @@ impl<'tcx> SelectionContext<'_, 'tcx> {
let InferOk { obligations, .. } = self
.infcx
.at(&cause, obligation.param_env)
.eq(DefineOpaqueTypes::Yes, placeholder_obligation_trait_ref, impl_trait_ref)
.eq(DefineOpaqueTypes::No, placeholder_obligation_trait_ref, impl_trait_ref)
.map_err(|e| {
debug!("match_impl: failed eq_trait_refs due to `{}`", e.to_string(self.tcx()))
})?;