@@ -177,7 +177,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
177
177
expected_ty,
178
178
self . tcx
179
179
. explicit_item_bounds ( def_id)
180
- . arg_iter_copied ( self . tcx , args)
180
+ . iter_instantiated_copied ( self . tcx , args)
181
181
. map ( |( c, s) | ( c. as_predicate ( ) , s) ) ,
182
182
) ,
183
183
ty:: Dynamic ( ref object_type, ..) => {
@@ -720,13 +720,13 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
720
720
ty:: Alias ( ty:: Opaque , ty:: AliasTy { def_id, args, .. } ) => self
721
721
. tcx
722
722
. explicit_item_bounds ( def_id)
723
- . arg_iter_copied ( self . tcx , args)
723
+ . iter_instantiated_copied ( self . tcx , args)
724
724
. find_map ( |( p, s) | get_future_output ( p. as_predicate ( ) , s) ) ?,
725
725
ty:: Error ( _) => return None ,
726
726
ty:: Alias ( ty:: Projection , proj) if self . tcx . is_impl_trait_in_trait ( proj. def_id ) => self
727
727
. tcx
728
728
. explicit_item_bounds ( proj. def_id )
729
- . arg_iter_copied ( self . tcx , proj. args )
729
+ . iter_instantiated_copied ( self . tcx , proj. args )
730
730
. find_map ( |( p, s) | get_future_output ( p. as_predicate ( ) , s) ) ?,
731
731
_ => span_bug ! (
732
732
self . tcx. def_span( expr_def_id) ,
0 commit comments