From 6b6d15ac206e599509ebc40c39270877bf77c000 Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Thu, 28 Feb 2013 20:30:16 -0800 Subject: Remove code that was awaiting a snapshot * Disallow structural records everywhere * Remove all #[cfg(stage0)] stuff * Remove the last deprecated modes in libcore * Un-xfail a test --- src/libstd/test.rs | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'src/libstd') diff --git a/src/libstd/test.rs b/src/libstd/test.rs index bfeaf8400bc..49a8dff4a96 100644 --- a/src/libstd/test.rs +++ b/src/libstd/test.rs @@ -46,34 +46,10 @@ extern mod rustrt { // colons. This way if some test runner wants to arrange the tests // hierarchically it may. -#[cfg(stage0)] -pub enum TestName { - // Stage0 doesn't understand sendable &static/str yet - StaticTestName(&static/[u8]), - DynTestName(~str) -} - -#[cfg(stage0)] -impl ToStr for TestName { - pure fn to_str(&self) -> ~str { - match self { - &StaticTestName(s) => str::from_bytes(s), - &DynTestName(s) => s.to_str() - } - } -} - -#[cfg(stage1)] -#[cfg(stage2)] -#[cfg(stage3)] pub enum TestName { StaticTestName(&static/str), DynTestName(~str) } - -#[cfg(stage1)] -#[cfg(stage2)] -#[cfg(stage3)] impl ToStr for TestName { pure fn to_str(&self) -> ~str { match self { -- cgit 1.4.1-3-g733a5