Use substs from opaque type key instead of using it from opaque_decl
This commit is contained in:
parent
37ab718350
commit
5dabd55d7d
4 changed files with 18 additions and 26 deletions
|
@ -371,9 +371,8 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> {
|
|||
debug!("constrain_opaque_types()");
|
||||
|
||||
for &(opaque_type_key, opaque_defn) in opaque_types {
|
||||
let OpaqueTypeKey { def_id, substs: _ } = opaque_type_key;
|
||||
self.constrain_opaque_type(
|
||||
def_id,
|
||||
opaque_type_key.def_id,
|
||||
&opaque_defn,
|
||||
GenerateMemberConstraints::WhenRequired,
|
||||
free_region_relations,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue