about summary refs log tree commit diff
path: root/src/libstd/lib.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-02-14 10:10:06 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-02-14 22:55:21 -0800
commita41b0c25295e06b8eebc4bdcb3021354f766cba0 (patch)
treed1b3262191eb927bc9e0535318676d711e2a655d /src/libstd/lib.rs
parent359ac360a453b31494d18bf838f6620032a663e5 (diff)
downloadrust-a41b0c25295e06b8eebc4bdcb3021354f766cba0.tar.gz
rust-a41b0c25295e06b8eebc4bdcb3021354f766cba0.zip
extern mod => extern crate
This was previously implemented, and it just needed a snapshot to go through
Diffstat (limited to 'src/libstd/lib.rs')
-rw-r--r--src/libstd/lib.rs12
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;