Skip to content

Commit 8eed962

Browse files
authored
Merge pull request #5302 from RalfJung/rustup
Rustup
2 parents 44690ee + 63af03f commit 8eed962

4 files changed

Lines changed: 11 additions & 4 deletions

File tree

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cargo-miri/src/phases.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,13 +606,17 @@ pub fn phase_runner(mut binary_args: impl Iterator<Item = String>, phase: Runner
606606
// We need to remove `--error-format` as cargo specifies that to be JSON,
607607
// but when we run here, cargo does not interpret the JSON any more. `--json`
608608
// then also needs to be dropped.
609-
for arg in &info.args {
609+
// We also need to remove `--force-warn=unused_crate_dependencies` as cargo is not there to
610+
// process the output.
611+
for arg in info.args {
610612
if let Some(suffix) = arg.strip_prefix("--error-format") {
611613
assert!(suffix.starts_with('='));
612614
// Drop this argument.
613615
} else if let Some(suffix) = arg.strip_prefix("--json") {
614616
assert!(suffix.starts_with('='));
615617
// Drop this argument.
618+
} else if arg == "--force-warn=unused_crate_dependencies" {
619+
// Drop this argument.
616620
} else {
617621
cmd.arg(arg);
618622
}

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
edc52f87c28f328c61685a02c47887a5cec7d767
1+
2e2b193f8ada105f27608b7be81c293e0d7292cb

test-cargo-miri/proc-macro-crate/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ proc-macro = true
1010
[dependencies]
1111
# A common dependency of proc macros, let's make sure that works.
1212
proc-macro2 = "1.0"
13+
14+
[lints.cargo]
15+
unused_dependencies = "allow"

0 commit comments

Comments
 (0)