From 206ab89629298cc9f4b6fb0aa1cd7556c65b5bfe Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Fri, 24 May 2013 19:35:29 -0700 Subject: librustc: Stop reexporting the standard modules from prelude. --- src/libstd/rt/io/flate.rs | 2 ++ src/libstd/rt/io/mem.rs | 3 ++- src/libstd/rt/task.rs | 8 +++++--- src/libstd/rt/uv/uvll.rs | 4 ++++ 4 files changed, 13 insertions(+), 4 deletions(-) (limited to 'src/libstd/rt') diff --git a/src/libstd/rt/io/flate.rs b/src/libstd/rt/io/flate.rs index db2683dc85d..0a9e0b1e38f 100644 --- a/src/libstd/rt/io/flate.rs +++ b/src/libstd/rt/io/flate.rs @@ -100,6 +100,8 @@ mod test { use super::super::mem::*; use super::super::Decorator; + use str; + #[test] #[ignore] fn smoke_test() { diff --git a/src/libstd/rt/io/mem.rs b/src/libstd/rt/io/mem.rs index b2701c1fdc3..bd9cff76e57 100644 --- a/src/libstd/rt/io/mem.rs +++ b/src/libstd/rt/io/mem.rs @@ -15,9 +15,10 @@ //! * Should probably have something like this for strings. //! * Should they implement Closable? Would take extra state. +use cmp::min; use prelude::*; use super::*; -use cmp::min; +use vec; /// Writes to an owned, growable byte vector pub struct MemWriter { diff --git a/src/libstd/rt/task.rs b/src/libstd/rt/task.rs index cf4967b12b3..12c683120c8 100644 --- a/src/libstd/rt/task.rs +++ b/src/libstd/rt/task.rs @@ -13,12 +13,14 @@ //! local storage, and logging. Even a 'freestanding' Rust would likely want //! to implement this. -use prelude::*; -use libc::{c_void, uintptr_t}; use cast::transmute; +use libc::{c_void, uintptr_t}; +use ptr; +use prelude::*; use rt::local::Local; -use super::local_heap::LocalHeap; use rt::logging::StdErrLogger; +use super::local_heap::LocalHeap; +use super::sched::Scheduler; pub struct Task { heap: LocalHeap, diff --git a/src/libstd/rt/uv/uvll.rs b/src/libstd/rt/uv/uvll.rs index ddc9040d730..6263fd47df6 100644 --- a/src/libstd/rt/uv/uvll.rs +++ b/src/libstd/rt/uv/uvll.rs @@ -31,7 +31,11 @@ use libc::{size_t, c_int, c_uint, c_void, c_char, uintptr_t}; use libc::{malloc, free}; +use libc; use prelude::*; +use ptr; +use str; +use vec; pub static UNKNOWN: c_int = -1; pub static OK: c_int = 0; -- cgit 1.4.1-3-g733a5