diff options
| author | bors <bors@rust-lang.org> | 2013-02-28 22:45:37 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-02-28 22:45:37 -0800 |
| commit | a660bb362ce5a39014fb274367e6361d4deb8a7d (patch) | |
| tree | a697e39ba2c9b48184982e03af6f0d1c69dfdb98 /src/libstd | |
| parent | b7e72974dc09b050b07f7acb30dd70b0a65f4110 (diff) | |
| parent | d66a3dd0ec5982f964e540c758276d59af178960 (diff) | |
| download | rust-a660bb362ce5a39014fb274367e6361d4deb8a7d.tar.gz rust-a660bb362ce5a39014fb274367e6361d4deb8a7d.zip | |
auto merge of #5180 : catamorphism/rust/post-snapshot, r=catamorphism
* Disallow structural records everywhere * Remove all #[cfg(stage0)] stuff * Remove the last deprecated modes in libcore * Un-xfail a test
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/test.rs | 24 |
1 files changed, 0 insertions, 24 deletions
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 { |
