@@ -1857,7 +1857,7 @@ impl<'tcx> TyCtxt<'tcx> {
1857
1857
pub fn mk_fn_def (
1858
1858
self ,
1859
1859
def_id : DefId ,
1860
- substs : impl IntoIterator < Item = impl Into < GenericArg < ' tcx > > > ,
1860
+ substs : impl IntoIterator < Item : Into < GenericArg < ' tcx > > > ,
1861
1861
) -> Ty < ' tcx > {
1862
1862
let substs = self . check_substs ( def_id, substs) ;
1863
1863
self . mk_ty ( FnDef ( def_id, substs) )
@@ -1867,7 +1867,7 @@ impl<'tcx> TyCtxt<'tcx> {
1867
1867
fn check_substs (
1868
1868
self ,
1869
1869
_def_id : DefId ,
1870
- substs : impl IntoIterator < Item = impl Into < GenericArg < ' tcx > > > ,
1870
+ substs : impl IntoIterator < Item : Into < GenericArg < ' tcx > > > ,
1871
1871
) -> SubstsRef < ' tcx > {
1872
1872
let substs = substs. into_iter ( ) . map ( Into :: into) ;
1873
1873
#[ cfg( debug_assertions) ]
@@ -1902,7 +1902,7 @@ impl<'tcx> TyCtxt<'tcx> {
1902
1902
pub fn mk_projection (
1903
1903
self ,
1904
1904
item_def_id : DefId ,
1905
- substs : impl IntoIterator < Item = impl Into < GenericArg < ' tcx > > > ,
1905
+ substs : impl IntoIterator < Item : Into < GenericArg < ' tcx > > > ,
1906
1906
) -> Ty < ' tcx > {
1907
1907
self . mk_alias ( ty:: Projection , self . mk_alias_ty ( item_def_id, substs) )
1908
1908
}
@@ -2294,7 +2294,7 @@ impl<'tcx> TyCtxt<'tcx> {
2294
2294
pub fn mk_trait_ref (
2295
2295
self ,
2296
2296
trait_def_id : DefId ,
2297
- substs : impl IntoIterator < Item = impl Into < GenericArg < ' tcx > > > ,
2297
+ substs : impl IntoIterator < Item : Into < GenericArg < ' tcx > > > ,
2298
2298
) -> ty:: TraitRef < ' tcx > {
2299
2299
let substs = self . check_substs ( trait_def_id, substs) ;
2300
2300
ty:: TraitRef { def_id : trait_def_id, substs, _use_mk_trait_ref_instead : ( ) }
@@ -2303,7 +2303,7 @@ impl<'tcx> TyCtxt<'tcx> {
2303
2303
pub fn mk_alias_ty (
2304
2304
self ,
2305
2305
def_id : DefId ,
2306
- substs : impl IntoIterator < Item = impl Into < GenericArg < ' tcx > > > ,
2306
+ substs : impl IntoIterator < Item : Into < GenericArg < ' tcx > > > ,
2307
2307
) -> ty:: AliasTy < ' tcx > {
2308
2308
let substs = self . check_substs ( def_id, substs) ;
2309
2309
ty:: AliasTy { def_id, substs, _use_mk_alias_ty_instead : ( ) }
@@ -2469,7 +2469,7 @@ impl<'tcx> TyCtxtAt<'tcx> {
2469
2469
pub fn mk_trait_ref (
2470
2470
self ,
2471
2471
trait_lang_item : LangItem ,
2472
- substs : impl IntoIterator < Item = impl Into < ty:: GenericArg < ' tcx > > > ,
2472
+ substs : impl IntoIterator < Item : Into < ty:: GenericArg < ' tcx > > > ,
2473
2473
) -> ty:: TraitRef < ' tcx > {
2474
2474
let trait_def_id = self . require_lang_item ( trait_lang_item, Some ( self . span ) ) ;
2475
2475
self . tcx . mk_trait_ref ( trait_def_id, substs)
0 commit comments