diff options
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/lib.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index e0666ef4179..4452482b7e8 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -30,7 +30,7 @@ //! `std` is imported at the topmost level of every crate by default, as //! if the first line of each crate was //! -//! extern mod std; +//! extern crate std; //! //! This means that the contents of std can be accessed from any context //! with the `std::` path prefix, as in `use std::vec`, `use std::task::spawn`, @@ -64,15 +64,15 @@ // When testing libstd, bring in libuv as the I/O backend so tests can print // things and all of the std::io tests have an I/O interface to run on top // of -#[cfg(test)] extern mod rustuv = "rustuv"; -#[cfg(test)] extern mod native = "native"; -#[cfg(test)] extern mod green = "green"; +#[cfg(test)] extern crate rustuv = "rustuv"; +#[cfg(test)] extern crate native = "native"; +#[cfg(test)] extern crate green = "green"; // Make extra accessible for benchmarking -#[cfg(test)] extern mod extra = "extra"; +#[cfg(test)] extern crate extra = "extra"; // Make std testable by not duplicating lang items. See #2912 -#[cfg(test)] extern mod realstd = "std"; +#[cfg(test)] extern crate realstd = "std"; #[cfg(test)] pub use kinds = realstd::kinds; #[cfg(test)] pub use ops = realstd::ops; #[cfg(test)] pub use cmp = realstd::cmp; |
