Some final touches to ensure ./x.py test --stage 0 src/lib*
works
This commit is contained in:
parent
f24915b67f
commit
02f6a0335f
4 changed files with 5 additions and 2 deletions
|
@ -50,6 +50,7 @@
|
||||||
|
|
||||||
// Since libcore defines many fundamental lang items, all tests live in a
|
// Since libcore defines many fundamental lang items, all tests live in a
|
||||||
// separate crate, libcoretest, to avoid bizarre issues.
|
// separate crate, libcoretest, to avoid bizarre issues.
|
||||||
|
#![cfg(not(test))]
|
||||||
|
|
||||||
#![stable(feature = "core", since = "1.6.0")]
|
#![stable(feature = "core", since = "1.6.0")]
|
||||||
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
||||||
|
|
|
@ -46,6 +46,7 @@
|
||||||
#![feature(reverse_bits)]
|
#![feature(reverse_bits)]
|
||||||
#![feature(inclusive_range_methods)]
|
#![feature(inclusive_range_methods)]
|
||||||
#![feature(iterator_find_map)]
|
#![feature(iterator_find_map)]
|
||||||
|
#![feature(slice_internals)]
|
||||||
|
|
||||||
extern crate core;
|
extern crate core;
|
||||||
extern crate test;
|
extern crate test;
|
||||||
|
|
|
@ -98,6 +98,7 @@ mod tests {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg(not(stage0))]
|
||||||
fn test_reverse_bits() {
|
fn test_reverse_bits() {
|
||||||
assert_eq!(A.reverse_bits().reverse_bits(), A);
|
assert_eq!(A.reverse_bits().reverse_bits(), A);
|
||||||
assert_eq!(B.reverse_bits().reverse_bits(), B);
|
assert_eq!(B.reverse_bits().reverse_bits(), B);
|
||||||
|
|
|
@ -330,10 +330,10 @@
|
||||||
// with a rustc without jemalloc.
|
// with a rustc without jemalloc.
|
||||||
// FIXME(#44236) shouldn't need MSVC logic
|
// FIXME(#44236) shouldn't need MSVC logic
|
||||||
#![cfg_attr(all(not(target_env = "msvc"),
|
#![cfg_attr(all(not(target_env = "msvc"),
|
||||||
any(stage0, feature = "force_alloc_system")),
|
any(all(stage0, not(test)), feature = "force_alloc_system")),
|
||||||
feature(global_allocator))]
|
feature(global_allocator))]
|
||||||
#[cfg(all(not(target_env = "msvc"),
|
#[cfg(all(not(target_env = "msvc"),
|
||||||
any(stage0, feature = "force_alloc_system")))]
|
any(all(stage0, not(test)), feature = "force_alloc_system")))]
|
||||||
#[global_allocator]
|
#[global_allocator]
|
||||||
static ALLOC: alloc_system::System = alloc_system::System;
|
static ALLOC: alloc_system::System = alloc_system::System;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue