@@ -177,7 +177,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
177177 expected_ty,
178178 self . tcx
179179 . explicit_item_bounds ( def_id)
180- . arg_iter_copied ( self . tcx , args)
180+ . iter_instantiated_copied ( self . tcx , args)
181181 . map ( |( c, s) | ( c. as_predicate ( ) , s) ) ,
182182 ) ,
183183 ty:: Dynamic ( ref object_type, ..) => {
@@ -720,13 +720,13 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
720720 ty:: Alias ( ty:: Opaque , ty:: AliasTy { def_id, args, .. } ) => self
721721 . tcx
722722 . explicit_item_bounds ( def_id)
723- . arg_iter_copied ( self . tcx , args)
723+ . iter_instantiated_copied ( self . tcx , args)
724724 . find_map ( |( p, s) | get_future_output ( p. as_predicate ( ) , s) ) ?,
725725 ty:: Error ( _) => return None ,
726726 ty:: Alias ( ty:: Projection , proj) if self . tcx . is_impl_trait_in_trait ( proj. def_id ) => self
727727 . tcx
728728 . explicit_item_bounds ( proj. def_id )
729- . arg_iter_copied ( self . tcx , proj. args )
729+ . iter_instantiated_copied ( self . tcx , proj. args )
730730 . find_map ( |( p, s) | get_future_output ( p. as_predicate ( ) , s) ) ?,
731731 _ => span_bug ! (
732732 self . tcx. def_span( expr_def_id) ,
0 commit comments