Skip to content

Commit 20be654

Browse files
author
hyd-dev
committed
Empty core_miri_test and alloc_miri_test unless cfg(any(test, doctest))
1 parent 65a1fe7 commit 20be654

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

alloc_miri_test/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ edition = "2018"
1010
name = "alloc_miri_test"
1111
path = "../liballoc/src/lib.rs"
1212

13+
[features]
14+
# Empty this crate to avoid two copies of liballoc.
15+
# See https://github.com/rust-lang/miri-test-libstd/issues/4.
16+
default = ["miri-test-libstd"]
17+
miri-test-libstd = []
18+
1319
[dependencies]
1420

1521
[dev-dependencies]

core_miri_test/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ path = "../libcore/src/lib.rs"
1212
test = false
1313
bench = false
1414

15+
[features]
16+
# Empty this crate to avoid two copies of libcore.
17+
# See https://github.com/rust-lang/miri-test-libstd/issues/4.
18+
default = ["miri-test-libstd"]
19+
miri-test-libstd = []
20+
1521
[[test]]
1622
name = "coretests"
1723
path = "../libcore/tests/lib.rs"

0 commit comments

Comments
 (0)