diff options
Diffstat (limited to 'src/libtime/lib.rs')
| -rw-r--r-- | src/libtime/lib.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libtime/lib.rs b/src/libtime/lib.rs index 636e4ca83a8..a6d9a542a49 100644 --- a/src/libtime/lib.rs +++ b/src/libtime/lib.rs @@ -24,8 +24,6 @@ #[cfg(test)] #[phase(plugin, link)] extern crate log; -#[cfg(stage0)] -extern crate serialize; extern crate "serialize" as rustc_serialize; extern crate libc; @@ -597,7 +595,7 @@ impl<'a> fmt::Show for TmFmt<'a> { } fn parse_type(fmt: &mut fmt::Formatter, ch: char, tm: &Tm) -> fmt::Result { - let die = || { + let die = |&:| { unreachable!() }; match ch { @@ -1275,6 +1273,7 @@ mod tests { #[cfg(windows)] fn set_time_zone() { use libc; + use std::c_str::ToCStr; // Windows crt doesn't see any environment variable set by // `SetEnvironmentVariable`, which `os::setenv` internally uses. // It is why we use `putenv` here. |
