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! {
712
712
ty:: tls:: with( |tcx| {
713
713
// Use a type that can't appear in defaults of type parameters.
714
714
let dummy_self = tcx. mk_infer( ty:: FreshTy ( 0 ) ) ;
715
+ let mut first = true ;
715
716
716
717
if let Some ( principal) = self . principal( ) {
717
718
let principal = tcx
@@ -724,11 +725,17 @@ define_print! {
724
725
. with_self_ty( tcx, dummy_self)
725
726
} ) . collect:: <Vec <_>>( ) ;
726
727
cx. parameterized( f, principal. substs, principal. def_id, & projections) ?;
728
+ first = false ;
727
729
}
728
730
729
731
// Builtin bounds.
730
732
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) ) ?;
732
739
}
733
740
734
741
Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments