From 3bc4d1a1206ad5f4bb31475e17fc18ecf855ed8e Mon Sep 17 00:00:00 2001 From: James Miller Date: Thu, 20 Jun 2013 17:15:50 +1200 Subject: Remove all #[cfg(stage0)]-protected code New snapshot means this can all go. Also removes places that have comments that say they are workarounds for stage0 errors. --- src/libextra/num/complex.rs | 2 -- src/libextra/std.rc | 6 ------ src/libextra/time.rs | 2 +- 3 files changed, 1 insertion(+), 9 deletions(-) (limited to 'src/libextra') diff --git a/src/libextra/num/complex.rs b/src/libextra/num/complex.rs index b75537b8b3e..c626260043e 100644 --- a/src/libextra/num/complex.rs +++ b/src/libextra/num/complex.rs @@ -80,7 +80,6 @@ impl Cmplx { } } -#[cfg(not(stage0))] // Fixed by #4228 impl Cmplx { /// Calculate |self| #[inline] @@ -89,7 +88,6 @@ impl Cmplx { } } -#[cfg(not(stage0))] // Fixed by #4228 impl Cmplx { /// Calculate the principal Arg of self. #[inline] diff --git a/src/libextra/std.rc b/src/libextra/std.rc index 96c53266c6f..d4c85ef5136 100644 --- a/src/libextra/std.rc +++ b/src/libextra/std.rc @@ -32,16 +32,10 @@ Rust extras are part of the standard Rust distribution. #[deny(non_camel_case_types)]; #[deny(missing_doc)]; -// NOTE: remove these two attributes after the next snapshot -#[no_core]; // for stage0 -#[allow(unrecognized_lint)]; // otherwise stage0 is seriously ugly - #[no_std]; extern mod core(name = "std", vers = "0.7-pre"); -#[cfg(stage0)] -use core::{str, unstable}; use core::str::{StrSlice, OwnedStr}; pub use core::os; diff --git a/src/libextra/time.rs b/src/libextra/time.rs index 50592d5f730..005238a564e 100644 --- a/src/libextra/time.rs +++ b/src/libextra/time.rs @@ -275,7 +275,7 @@ priv fn do_strptime(s: &str, format: &str) -> Result { let mut i = 0u; let len = strs.len(); while i < len { - match strs[i] { // can't use let due to stage0 bugs + match strs[i] { // can't use let due to let-pattern bugs (ref needle, value) => { if match_str(ss, pos, *needle) { return Some((value, pos + needle.len())); -- cgit 1.4.1-3-g733a5