@@ -1855,7 +1855,7 @@ fn fn_sig_for_fn(db: &dyn HirDatabase, def: FunctionId) -> PolyFnSig {
1855
1855
let ctx_params = TyLoweringContext :: new ( db, & resolver, def. into ( ) )
1856
1856
. with_impl_trait_mode ( ImplTraitLoweringMode :: Variable )
1857
1857
. with_type_param_mode ( ParamLoweringMode :: Variable ) ;
1858
- let params = data. params . iter ( ) . map ( |tr| ctx_params. lower_ty ( tr) ) . collect :: < Vec < _ > > ( ) ;
1858
+ let params = data. params . iter ( ) . map ( |tr| ctx_params. lower_ty ( tr) ) ;
1859
1859
let ctx_ret = TyLoweringContext :: new ( db, & resolver, def. into ( ) )
1860
1860
. with_impl_trait_mode ( ImplTraitLoweringMode :: Opaque )
1861
1861
. with_type_param_mode ( ParamLoweringMode :: Variable ) ;
@@ -1909,7 +1909,7 @@ fn fn_sig_for_struct_constructor(db: &dyn HirDatabase, def: StructId) -> PolyFnS
1909
1909
let resolver = def. resolver ( db. upcast ( ) ) ;
1910
1910
let ctx = TyLoweringContext :: new ( db, & resolver, AdtId :: from ( def) . into ( ) )
1911
1911
. with_type_param_mode ( ParamLoweringMode :: Variable ) ;
1912
- let params = fields. iter ( ) . map ( |( _, field) | ctx. lower_ty ( & field. type_ref ) ) . collect :: < Vec < _ > > ( ) ;
1912
+ let params = fields. iter ( ) . map ( |( _, field) | ctx. lower_ty ( & field. type_ref ) ) ;
1913
1913
let ( ret, binders) = type_for_adt ( db, def. into ( ) ) . into_value_and_skipped_binders ( ) ;
1914
1914
Binders :: new (
1915
1915
binders,
@@ -1941,7 +1941,7 @@ fn fn_sig_for_enum_variant_constructor(db: &dyn HirDatabase, def: EnumVariantId)
1941
1941
let resolver = def. resolver ( db. upcast ( ) ) ;
1942
1942
let ctx = TyLoweringContext :: new ( db, & resolver, DefWithBodyId :: VariantId ( def) . into ( ) )
1943
1943
. with_type_param_mode ( ParamLoweringMode :: Variable ) ;
1944
- let params = fields. iter ( ) . map ( |( _, field) | ctx. lower_ty ( & field. type_ref ) ) . collect :: < Vec < _ > > ( ) ;
1944
+ let params = fields. iter ( ) . map ( |( _, field) | ctx. lower_ty ( & field. type_ref ) ) ;
1945
1945
let ( ret, binders) =
1946
1946
type_for_adt ( db, def. lookup ( db. upcast ( ) ) . parent . into ( ) ) . into_value_and_skipped_binders ( ) ;
1947
1947
Binders :: new (
0 commit comments