@@ -1857,7 +1857,7 @@ impl<'tcx> TyCtxt<'tcx> {
18571857 pub fn mk_fn_def (
18581858 self ,
18591859 def_id : DefId ,
1860- substs : impl IntoIterator < Item = impl Into < GenericArg < ' tcx > > > ,
1860+ substs : impl IntoIterator < Item : Into < GenericArg < ' tcx > > > ,
18611861 ) -> Ty < ' tcx > {
18621862 let substs = self . check_substs ( def_id, substs) ;
18631863 self . mk_ty ( FnDef ( def_id, substs) )
@@ -1867,7 +1867,7 @@ impl<'tcx> TyCtxt<'tcx> {
18671867 fn check_substs (
18681868 self ,
18691869 _def_id : DefId ,
1870- substs : impl IntoIterator < Item = impl Into < GenericArg < ' tcx > > > ,
1870+ substs : impl IntoIterator < Item : Into < GenericArg < ' tcx > > > ,
18711871 ) -> SubstsRef < ' tcx > {
18721872 let substs = substs. into_iter ( ) . map ( Into :: into) ;
18731873 #[ cfg( debug_assertions) ]
@@ -1902,7 +1902,7 @@ impl<'tcx> TyCtxt<'tcx> {
19021902 pub fn mk_projection (
19031903 self ,
19041904 item_def_id : DefId ,
1905- substs : impl IntoIterator < Item = impl Into < GenericArg < ' tcx > > > ,
1905+ substs : impl IntoIterator < Item : Into < GenericArg < ' tcx > > > ,
19061906 ) -> Ty < ' tcx > {
19071907 self . mk_alias ( ty:: Projection , self . mk_alias_ty ( item_def_id, substs) )
19081908 }
@@ -2294,7 +2294,7 @@ impl<'tcx> TyCtxt<'tcx> {
22942294 pub fn mk_trait_ref (
22952295 self ,
22962296 trait_def_id : DefId ,
2297- substs : impl IntoIterator < Item = impl Into < GenericArg < ' tcx > > > ,
2297+ substs : impl IntoIterator < Item : Into < GenericArg < ' tcx > > > ,
22982298 ) -> ty:: TraitRef < ' tcx > {
22992299 let substs = self . check_substs ( trait_def_id, substs) ;
23002300 ty:: TraitRef { def_id : trait_def_id, substs, _use_mk_trait_ref_instead : ( ) }
@@ -2303,7 +2303,7 @@ impl<'tcx> TyCtxt<'tcx> {
23032303 pub fn mk_alias_ty (
23042304 self ,
23052305 def_id : DefId ,
2306- substs : impl IntoIterator < Item = impl Into < GenericArg < ' tcx > > > ,
2306+ substs : impl IntoIterator < Item : Into < GenericArg < ' tcx > > > ,
23072307 ) -> ty:: AliasTy < ' tcx > {
23082308 let substs = self . check_substs ( def_id, substs) ;
23092309 ty:: AliasTy { def_id, substs, _use_mk_alias_ty_instead : ( ) }
@@ -2469,7 +2469,7 @@ impl<'tcx> TyCtxtAt<'tcx> {
24692469 pub fn mk_trait_ref (
24702470 self ,
24712471 trait_lang_item : LangItem ,
2472- substs : impl IntoIterator < Item = impl Into < ty:: GenericArg < ' tcx > > > ,
2472+ substs : impl IntoIterator < Item : Into < ty:: GenericArg < ' tcx > > > ,
24732473 ) -> ty:: TraitRef < ' tcx > {
24742474 let trait_def_id = self . require_lang_item ( trait_lang_item, Some ( self . span ) ) ;
24752475 self . tcx . mk_trait_ref ( trait_def_id, substs)
0 commit comments