diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-10-31 02:54:12 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-31 02:54:12 +0100 |
| commit | 83000c29ba87bcce2fecb2344844c9a8ec9be9ad (patch) | |
| tree | 197ad479bbd8361cd07476306415535cc5705ffa /src | |
| parent | 30ed544948dc12b487e6c307bf76c43785841f8a (diff) | |
| parent | 4819cba461e8c5410d3ff77bfa9f52b0b7116133 (diff) | |
| download | rust-83000c29ba87bcce2fecb2344844c9a8ec9be9ad.tar.gz rust-83000c29ba87bcce2fecb2344844c9a8ec9be9ad.zip | |
Rollup merge of #65981 - RalfJung:check-your-gates, r=Centril
work around aggressive syntax feature gating This works around https://github.com/rust-lang/rust/issues/65860; fixing `rustc +nightly lib.rs --test --edition 2018` for libcore and thus unblocking https://github.com/RalfJung/miri-test-libstd.
Diffstat (limited to 'src')
| -rw-r--r-- | src/libcore/lib.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libcore/lib.rs b/src/libcore/lib.rs index 0819969b933..1b67b05c730 100644 --- a/src/libcore/lib.rs +++ b/src/libcore/lib.rs @@ -133,6 +133,7 @@ #[allow(unused)] use prelude::v1::*; +#[cfg(not(test))] // See #65860 #[macro_use] mod macros; @@ -180,10 +181,14 @@ pub mod hint; /* Core language traits */ +#[cfg(not(test))] // See #65860 pub mod marker; pub mod ops; +#[cfg(not(test))] // See #65860 pub mod cmp; +#[cfg(not(test))] // See #65860 pub mod clone; +#[cfg(not(test))] // See #65860 pub mod default; pub mod convert; pub mod borrow; @@ -191,6 +196,7 @@ pub mod borrow; /* Core types and methods on primitives */ pub mod any; +#[cfg(not(test))] // See #65860 pub mod array; pub mod ascii; pub mod sync; @@ -198,7 +204,9 @@ pub mod cell; pub mod char; pub mod panic; pub mod panicking; +#[cfg(not(test))] // See #65860 pub mod pin; +#[cfg(not(test))] // See #65860 pub mod iter; pub mod option; pub mod raw; @@ -206,14 +214,18 @@ pub mod result; pub mod ffi; pub mod slice; +#[cfg(not(test))] // See #65860 pub mod str; +#[cfg(not(test))] // See #65860 pub mod hash; +#[cfg(not(test))] // See #65860 pub mod fmt; pub mod time; pub mod unicode; /* Async */ +#[cfg(not(test))] // See #65860 pub mod future; pub mod task; |
