@@ -44,7 +44,7 @@ impl<A:ToStr> ToStr for (A,) {
44
44
fn to_str ( & self ) -> ~str {
45
45
match * self {
46
46
( ref a, ) => {
47
- ~" ( " + a .to_str() + " , ) "
47
+ fmt ! ( "(%s,)" , ( * a ) . to_str( ) )
48
48
}
49
49
}
50
50
}
@@ -91,11 +91,11 @@ impl<A:ToStr+Hash+Eq> ToStr for HashSet<A> {
91
91
impl<A:ToStr,B:ToStr> ToStr for (A, B) {
92
92
#[inline(always)]
93
93
fn to_str(&self) -> ~str {
94
- // FIXME(#4760 ): this causes an llvm assertion
94
+ // FIXME(#4653 ): this causes an llvm assertion
95
95
//let &(ref a, ref b) = self;
96
96
match *self {
97
97
(ref a, ref b) => {
98
- ~" ( " + a .to_str() + " , " + b .to_str() + " ) "
98
+ fmt!(" ( %s , %s ) " , ( * a ) . to_str ( ) , ( * b ) . to_str ( ) )
99
99
}
100
100
}
101
101
}
@@ -104,7 +104,7 @@ impl<A:ToStr,B:ToStr> ToStr for (A, B) {
104
104
impl <A : ToStr , B : ToStr , C : ToStr > ToStr for ( A , B , C ) {
105
105
#[ inline( always) ]
106
106
fn to_str ( & self ) -> ~str {
107
- // FIXME(#4760 ): this causes an llvm assertion
107
+ // FIXME(#4653 ): this causes an llvm assertion
108
108
//let &(ref a, ref b, ref c) = self;
109
109
match * self {
110
110
( ref a, ref b, ref c) => {
0 commit comments