From 262c1efe6352a3e4dba4d8aebc4d9bd96849cd71 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 29 Dec 2014 19:40:57 -0800 Subject: Register new snapshots --- src/libcollections/string.rs | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/libcollections') diff --git a/src/libcollections/string.rs b/src/libcollections/string.rs index c6c19cae75f..9fea4467db5 100644 --- a/src/libcollections/string.rs +++ b/src/libcollections/string.rs @@ -989,20 +989,11 @@ pub trait ToString { } impl ToString for T { - // NOTE(stage0): Remove cfg after a snapshot - #[cfg(not(stage0))] fn to_string(&self) -> String { let mut buf = Vec::::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::::new(); - let _ = format_args!(|args| fmt::write(&mut buf, args), "{}", self); - String::from_utf8(buf).unwrap() - } } impl IntoCow<'static, String, str> for String { -- cgit 1.4.1-3-g733a5