1
Fork 0

Use substs from opaque type key instead of using it from opaque_decl

This commit is contained in:
Santiago Pastorino 2021-06-07 17:34:36 -03:00
parent 37ab718350
commit 5dabd55d7d
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF
4 changed files with 18 additions and 26 deletions

View file

@ -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,