about summary refs log tree commit diff
path: root/src/libcollections
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-12-30 16:26:24 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-12-30 16:26:24 -0800
commitdd0f29ad0f3ddc48f36340cd0abff4712e882a3e (patch)
tree71614fc4b8abe510c2c3546eef6e6a0853f1075e /src/libcollections
parent49f14d36e131bee318340d638aa4f94d8cf872f6 (diff)
parent262c1efe6352a3e4dba4d8aebc4d9bd96849cd71 (diff)
downloadrust-dd0f29ad0f3ddc48f36340cd0abff4712e882a3e.tar.gz
rust-dd0f29ad0f3ddc48f36340cd0abff4712e882a3e.zip
rollup merge of #20353: alexcrichton/snapshots
Diffstat (limited to 'src/libcollections')
-rw-r--r--src/libcollections/string.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/libcollections/string.rs b/src/libcollections/string.rs
index 0969f0fcfcc..9c54fbdd6a7 100644
--- a/src/libcollections/string.rs
+++ b/src/libcollections/string.rs
@@ -994,20 +994,11 @@ pub trait ToString {
 }
 
 impl<T: fmt::Show> ToString for T {
-    // NOTE(stage0): Remove cfg after a snapshot
-    #[cfg(not(stage0))]
     fn to_string(&self) -> String {
         let mut buf = Vec::<u8>::new();
         let _ = fmt::write(&mut buf, format_args!("{}", *self));
         String::from_utf8(buf).unwrap()
     }
-    // NOTE(stage0): Remove method after a snapshot
-    #[cfg(stage0)]
-    fn to_string(&self) -> String {
-        let mut buf = Vec::<u8>::new();
-        let _ = format_args!(|args| fmt::write(&mut buf, args), "{}", self);
-        String::from_utf8(buf).unwrap()
-    }
 }
 
 impl IntoCow<'static, String, str> for String {