diff --git a/src/libstd/to_str.rs b/src/libstd/to_str.rs index 3cc64147964cb..bfda92d46a284 100644 --- a/src/libstd/to_str.rs +++ b/src/libstd/to_str.rs @@ -44,7 +44,7 @@ impl ToStr for (A,) { fn to_str(&self) -> ~str { match *self { (ref a,) => { - ~"(" + a.to_str() + ",)" + fmt!("(%s,)", (*a).to_str()) } } } @@ -91,11 +91,11 @@ impl ToStr for HashSet { impl ToStr for (A, B) { #[inline(always)] fn to_str(&self) -> ~str { - // FIXME(#4760): this causes an llvm assertion + // FIXME(#4653): this causes an llvm assertion //let &(ref a, ref b) = self; match *self { (ref a, ref b) => { - ~"(" + a.to_str() + ", " + b.to_str() + ")" + fmt!("(%s, %s)", (*a).to_str(), (*b).to_str()) } } } @@ -104,7 +104,7 @@ impl ToStr for (A, B) { impl ToStr for (A, B, C) { #[inline(always)] fn to_str(&self) -> ~str { - // FIXME(#4760): this causes an llvm assertion + // FIXME(#4653): this causes an llvm assertion //let &(ref a, ref b, ref c) = self; match *self { (ref a, ref b, ref c) => {