File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -712,6 +712,7 @@ define_print! {
712712 ty:: tls:: with( |tcx| { 
713713 // Use a type that can't appear in defaults of type parameters. 
714714 let  dummy_self = tcx. mk_infer( ty:: FreshTy ( 0 ) ) ; 
715+  let  mut  first = true ; 
715716
716717 if  let  Some ( principal)  = self . principal( )  { 
717718 let  principal = tcx
@@ -724,11 +725,17 @@ define_print! {
724725 . with_self_ty( tcx,  dummy_self) 
725726 } ) . collect:: <Vec <_>>( ) ; 
726727 cx. parameterized( f,  principal. substs,  principal. def_id,  & projections) ?; 
728+  first = false ; 
727729 } 
728730
729731 // Builtin bounds. 
730732 for  did in self . auto_traits( )  { 
731-  write!( f,  " + {}" ,  tcx. item_path_str( did) ) ?; 
733+  if  !first { 
734+  write!( f,  " + " ) ?; 
735+  } 
736+  first = false ; 
737+ 
738+  write!( f,  "{}" ,  tcx. item_path_str( did) ) ?; 
732739 } 
733740
734741 Ok ( ( ) ) 
                                 You can’t perform that action at this time. 
               
                  
0 commit comments