Skip to content

Commit a379a95

Browse files
committed
test-cargo-miri: add proc-macro2 instead of anyhow
1 parent 9f11ed7 commit a379a95

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

src/tools/miri/test-cargo-miri/Cargo.lock

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22
# It is not intended for manual editing.
33
version = 3
44

5-
[[package]]
6-
name = "anyhow"
7-
version = "1.0.81"
8-
source = "registry+https://github.com/rust-lang/crates.io-index"
9-
checksum = "0952808a6c2afd1aa8947271f3a60f1a6763c7b912d210184c5149b5cf147247"
10-
115
[[package]]
126
name = "autocfg"
137
version = "1.1.0"
@@ -30,7 +24,6 @@ checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610"
3024
name = "cargo-miri-test"
3125
version = "0.1.0"
3226
dependencies = [
33-
"anyhow",
3427
"autocfg",
3528
"byteorder 0.5.3",
3629
"byteorder 1.4.3",
@@ -42,6 +35,7 @@ dependencies = [
4235
"issue_1705",
4336
"issue_1760",
4437
"issue_rust_86261",
38+
"proc-macro2",
4539
"serde_derive",
4640
]
4741

src/tools/miri/test-cargo-miri/Cargo.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ issue_rust_86261 = { path = "issue-rust-86261" }
2020

2121
[dev-dependencies]
2222
byteorder_2 = { package = "byteorder", version = "0.5" } # to test dev-dependencies behave as expected, with renaming
23-
# Not actually used, but exercises some unique code path (`--extern` .so file).
23+
## More dependencies that we don't actually use, but add just for extra test coverage.
24+
# Exercises some unique code path (`--extern` .so file).
2425
serde_derive = "1.0.185"
25-
# Not actually used, but uses a custom build probe so let's make sure that works.
26+
# These use custom build probes, let's make sure they don't explode.
2627
# (Ideally we'd check if the probe was successful, but that's not easily possible.)
27-
anyhow = "1.0"
28-
# Same as anyhow.
28+
# proc-macro2 is extra exciting because it is both a host-dependency and a target-dependency.
29+
proc-macro2 = "1.0"
2930
eyre = "0.6"
3031

3132
[build-dependencies]

0 commit comments

Comments
 (0)