extern mod => extern crate

This was previously implemented, and it just needed a snapshot to go through
This commit is contained in:
Alex Crichton
2014-02-14 10:10:06 -08:00
parent 359ac360a4
commit a41b0c2529
438 changed files with 682 additions and 685 deletions

View File

@@ -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;