Skip to content

Commit e95ce16

Browse files
authored
Merge pull request #5 from hyd-dev/empty-core-miri-test
Empty `core_miri_test` and `alloc_miri_test` unless `cfg(any(test, doctest))`
2 parents 65a1fe7 + d5bab73 commit e95ce16

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
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"

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nightly-2021-07-09
1+
nightly-2021-07-24

0 commit comments

Comments
 (0)