Skip to content

Commit

Permalink
Merge pull request #5 from hyd-dev/empty-core-miri-test
Browse files Browse the repository at this point in the history
Empty `core_miri_test` and `alloc_miri_test` unless `cfg(any(test, doctest))`
  • Loading branch information
RalfJung authored Jul 24, 2021
2 parents 65a1fe7 + d5bab73 commit e95ce16
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions alloc_miri_test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ edition = "2018"
name = "alloc_miri_test"
path = "../liballoc/src/lib.rs"

[features]
# Empty this crate to avoid two copies of liballoc.
# See https://github.com/rust-lang/miri-test-libstd/issues/4.
default = ["miri-test-libstd"]
miri-test-libstd = []

[dependencies]

[dev-dependencies]
Expand Down
6 changes: 6 additions & 0 deletions core_miri_test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ path = "../libcore/src/lib.rs"
test = false
bench = false

[features]
# Empty this crate to avoid two copies of libcore.
# See https://github.com/rust-lang/miri-test-libstd/issues/4.
default = ["miri-test-libstd"]
miri-test-libstd = []

[[test]]
name = "coretests"
path = "../libcore/tests/lib.rs"
Expand Down
2 changes: 1 addition & 1 deletion rust-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nightly-2021-07-09
nightly-2021-07-24

0 comments on commit e95ce16

Please sign in to comment.