Skip to content

Commit 60ac3b6

Browse files
committed
Make miri-test-libstd unnecessary for alloc.
1 parent e4f87c6 commit 60ac3b6

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

alloc_miri_test/Cargo.toml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,18 @@ edition = "2021"
77

88
[lib]
99
name = "alloc_miri_test"
10-
path = "../library/alloc/src/lib.rs"
11-
12-
[features]
13-
# Empty this crate to avoid two copies of liballoc.
14-
# See https://github.com/rust-lang/miri-test-libstd/issues/4.
15-
default = ["miri-test-libstd"]
16-
miri-test-libstd = []
17-
18-
[dependencies]
19-
# This lets the crate access the `core` and `alloc` crates.
20-
core = { path = "../fake/core" }
21-
alloc = { path = "../fake/alloc" }
10+
path = "../empty.rs"
11+
test = false
12+
bench = false
2213

2314
[dev-dependencies]
2415
rand = { version = "0.8.5", default-features = false, features = ["alloc"] }
2516
rand_xorshift = "0.3.0"
2617

2718
[[test]]
28-
name = "collectionstests"
19+
name = "alloc"
20+
path = "../library/alloc/src/lib.rs"
21+
22+
[[test]]
23+
name = "alloctests"
2924
path = "../library/alloc/tests/lib.rs"

0 commit comments

Comments
 (0)