@@ -516,8 +516,7 @@ fn projection_to_path_segment<'tcx>(
516516 ty. map_bound ( |ty| & ty. args [ generics. parent_count ..] ) ,
517517 false ,
518518 def_id,
519- )
520- . into ( ) ,
519+ ) ,
521520 constraints : Default :: default ( ) ,
522521 } ,
523522 }
@@ -2202,8 +2201,7 @@ pub(crate) fn clean_middle_ty<'tcx>(
22022201 alias_ty. map_bound ( |ty| ty. args . as_slice ( ) ) ,
22032202 true ,
22042203 def_id,
2205- )
2206- . into ( ) ,
2204+ ) ,
22072205 constraints : Default :: default ( ) ,
22082206 } ,
22092207 } ,
@@ -2521,7 +2519,7 @@ fn clean_generic_args<'tcx>(
25212519) -> GenericArgs {
25222520 // FIXME(return_type_notation): Fix RTN parens rendering
25232521 if let Some ( ( inputs, output) ) = generic_args. paren_sugar_inputs_output ( ) {
2524- let inputs = inputs. iter ( ) . map ( |x| clean_ty ( x, cx) ) . collect :: < Vec < _ > > ( ) . into ( ) ;
2522+ let inputs = inputs. iter ( ) . map ( |x| clean_ty ( x, cx) ) . collect :: < ThinVec < _ > > ( ) . into ( ) ;
25252523 let output = match output. kind {
25262524 hir:: TyKind :: Tup ( & [ ] ) => None ,
25272525 _ => Some ( Box :: new ( clean_ty ( output, cx) ) ) ,
@@ -2542,7 +2540,7 @@ fn clean_generic_args<'tcx>(
25422540 }
25432541 hir:: GenericArg :: Infer ( _inf) => GenericArg :: Infer ,
25442542 } )
2545- . collect :: < Vec < _ > > ( )
2543+ . collect :: < ThinVec < _ > > ( )
25462544 . into ( ) ;
25472545 let constraints = generic_args
25482546 . constraints
0 commit comments