diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-01-07 10:27:52 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-01-07 10:27:52 -0800 |
| commit | b53e9f17d336bc3550ab2c5eda503bd9e719e94f (patch) | |
| tree | 7faddc7360154edef97d224981749d955756d4af /src/libcollections/string.rs | |
| parent | 2a8cb678e61e91c160d80794b5fdd723d0d4211c (diff) | |
| download | rust-b53e9f17d336bc3550ab2c5eda503bd9e719e94f.tar.gz rust-b53e9f17d336bc3550ab2c5eda503bd9e719e94f.zip | |
Register new snapshots
Diffstat (limited to 'src/libcollections/string.rs')
| -rw-r--r-- | src/libcollections/string.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/libcollections/string.rs b/src/libcollections/string.rs index 59418f50e3c..507703c3a90 100644 --- a/src/libcollections/string.rs +++ b/src/libcollections/string.rs @@ -921,18 +921,6 @@ pub trait ToString { fn to_string(&self) -> String; } -#[cfg(stage0)] -impl<T: fmt::Show> ToString for T { - fn to_string(&self) -> String { - use core::fmt::Writer; - let mut buf = String::new(); - let _ = buf.write_fmt(format_args!("{}", self)); - buf.shrink_to_fit(); - buf - } -} - -#[cfg(not(stage0))] impl<T: fmt::String> ToString for T { fn to_string(&self) -> String { use core::fmt::Writer; |
