Skip to content

Commit fc71cba

Browse files
committed
---
yaml --- r: 46601 b: refs/heads/auto c: 6bff18e h: refs/heads/master i: 46599: dcd64a1 v: v3
1 parent d0368f4 commit fc71cba

File tree

2 files changed

+6
-22
lines changed

2 files changed

+6
-22
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: 292e946163c5acbca6b90f64133921752b0ed963
17+
refs/heads/auto: 6bff18ea0de2f96a4103c11bc183b380f6d2c83a

branches/auto/src/libcore/to_str.rs

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -137,15 +137,6 @@ impl<A:ToStr> ToStr for @[A] {
137137
}
138138
}
139139
140-
impl<A:ToStr> ToStr for @A {
141-
#[inline(always)]
142-
pure fn to_str(&self) -> ~str { ~"@" + (**self).to_str() }
143-
}
144-
impl<A:ToStr> ToStr for ~A {
145-
#[inline(always)]
146-
pure fn to_str(&self) -> ~str { ~"~" + (**self).to_str() }
147-
}
148-
149140
#[cfg(test)]
150141
#[allow(non_implicitly_copyable_typarams)]
151142
mod tests {
@@ -170,19 +161,12 @@ mod tests {
170161
}
171162

172163
#[test]
173-
#[ignore]
174164
fn test_vectors() {
175165
let x: ~[int] = ~[];
176-
assert x.to_str() == ~"~[]";
177-
assert (~[1]).to_str() == ~"~[1]";
178-
assert (~[1, 2, 3]).to_str() == ~"~[1, 2, 3]";
166+
assert x.to_str() == ~"[]";
167+
assert (~[1]).to_str() == ~"[1]";
168+
assert (~[1, 2, 3]).to_str() == ~"[1, 2, 3]";
179169
assert (~[~[], ~[1], ~[1, 1]]).to_str() ==
180-
~"~[~[], ~[1], ~[1, 1]]";
181-
}
182-
183-
#[test]
184-
fn test_pointer_types() {
185-
assert (@1).to_str() == ~"@1";
186-
assert (~(true, false)).to_str() == ~"~(true, false)";
170+
~"[[], [1], [1, 1]]";
187171
}
188172
}

0 commit comments

Comments
 (0)