Revert "When checking whether an impl applies, constrain hidden types of opaque types."
This reverts commit 29a630eb72
.
This commit is contained in:
parent
fe55c0091d
commit
6cca6da126
25 changed files with 120 additions and 171 deletions
|
@ -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()))
|
||||
})?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue