Merge remote-tracking branch 'origin/master' into 0.11.0-release
Conflicts: src/libstd/lib.rs
This commit is contained in:
@@ -43,7 +43,9 @@
|
||||
//! the failure message, the file at which failure was invoked, and the line.
|
||||
//! It is up to consumers of this core library to define this failure
|
||||
//! function; it is only required to never return.
|
||||
//!
|
||||
|
||||
// Since libcore defines many fundamental lang items, all tests live in a
|
||||
// separate crate, libcoretest, to avoid bizarre issues.
|
||||
|
||||
#![crate_id = "core#0.11.0"]
|
||||
#![experimental]
|
||||
@@ -58,17 +60,6 @@
|
||||
#![feature(globs, intrinsics, lang_items, macro_rules, managed_boxes, phase)]
|
||||
#![feature(simd, unsafe_destructor)]
|
||||
#![deny(missing_doc)]
|
||||
#![allow(unknown_features)] // NOTE: remove after stage0 snapshot
|
||||
|
||||
#[cfg(test)] extern crate realcore = "core";
|
||||
#[cfg(test)] extern crate libc;
|
||||
#[cfg(test)] extern crate native;
|
||||
#[cfg(test)] extern crate realstd = "std";
|
||||
|
||||
#[cfg(test)] pub use cmp = realcore::cmp;
|
||||
#[cfg(test)] pub use kinds = realcore::kinds;
|
||||
#[cfg(test)] pub use ops = realcore::ops;
|
||||
#[cfg(test)] pub use ty = realcore::ty;
|
||||
|
||||
mod macros;
|
||||
|
||||
@@ -105,10 +96,10 @@ pub mod ptr;
|
||||
|
||||
/* Core language traits */
|
||||
|
||||
#[cfg(not(test))] pub mod kinds;
|
||||
#[cfg(not(test))] pub mod ops;
|
||||
#[cfg(not(test))] pub mod ty;
|
||||
#[cfg(not(test))] pub mod cmp;
|
||||
pub mod kinds;
|
||||
pub mod ops;
|
||||
pub mod ty;
|
||||
pub mod cmp;
|
||||
pub mod clone;
|
||||
pub mod default;
|
||||
pub mod collections;
|
||||
@@ -145,11 +136,4 @@ mod std {
|
||||
pub use kinds;
|
||||
pub use option;
|
||||
pub use fmt;
|
||||
|
||||
#[cfg(test)] pub use realstd::rt; // needed for fail!()
|
||||
// #[cfg(test)] pub use realstd::option; // needed for fail!()
|
||||
// #[cfg(test)] pub use realstd::fmt; // needed for fail!()
|
||||
#[cfg(test)] pub use realstd::os; // needed for tests
|
||||
#[cfg(test)] pub use realstd::slice; // needed for tests
|
||||
#[cfg(test)] pub use realstd::vec; // needed for vec![]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user