Skip to content

Commit bba6ee9

Browse files
authored
Merge pull request #4294 from rust-lang/rustup-2025-04-26
Automatic Rustup
2 parents 7352e0f + 4cca357 commit bba6ee9

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

cargo-miri/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ fn main() {
5353
// with `RustcPhase::Rustdoc`. There we perform a check-build (needed to get the expected
5454
// build failures for `compile_fail` doctests) and then store a JSON file with the
5555
// information needed to run this test.
56-
// - We also set `--runtool` to ourselves, which ends up in `phase_runner` with
56+
// - We also set `--test-runtool` to ourselves, which ends up in `phase_runner` with
5757
// `RunnerPhase::Rustdoc`. There we parse the JSON file written in `phase_rustc` and invoke
5858
// the Miri driver for interpretation.
5959

cargo-miri/src/phases.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -666,8 +666,8 @@ pub fn phase_rustdoc(mut args: impl Iterator<Item = String>) {
666666
if arg == "--extern" {
667667
// Patch --extern arguments to use *.rmeta files, since phase_cargo_rustc only creates stub *.rlib files.
668668
forward_patched_extern_arg(&mut args, &mut cmd);
669-
} else if arg == "--runtool" {
670-
// An existing --runtool flag indicates cargo is running in cross-target mode, which we don't support.
669+
} else if arg == "--test-runtool" {
670+
// An existing --test-runtool flag indicates cargo is running in cross-target mode, which we don't support.
671671
// Note that this is only passed when cargo is run with the unstable -Zdoctest-xcompile flag;
672672
// otherwise, we won't be called as rustdoc at all.
673673
show_error!("cross-interpreting doctests is not currently supported by Miri.");
@@ -693,8 +693,8 @@ pub fn phase_rustdoc(mut args: impl Iterator<Item = String>) {
693693
// to let phase_cargo_rustc know to expect that. We'll use this environment variable as a flag:
694694
cmd.env("MIRI_CALLED_FROM_RUSTDOC", "1");
695695

696-
// The `--test-builder` and `--runtool` arguments are unstable rustdoc features,
697-
// which are disabled by default. We first need to enable them explicitly:
696+
// The `--test-builder` is an unstable rustdoc features,
697+
// which is disabled by default. We first need to enable them explicitly:
698698
cmd.arg("-Zunstable-options");
699699

700700
// rustdoc needs to know the right sysroot.
@@ -705,7 +705,7 @@ pub fn phase_rustdoc(mut args: impl Iterator<Item = String>) {
705705
// Make rustdoc call us back.
706706
let cargo_miri_path = env::current_exe().expect("current executable path invalid");
707707
cmd.arg("--test-builder").arg(&cargo_miri_path); // invoked by forwarding most arguments
708-
cmd.arg("--runtool").arg(&cargo_miri_path); // invoked with just a single path argument
708+
cmd.arg("--test-runtool").arg(&cargo_miri_path); // invoked with just a single path argument
709709

710710
debug_cmd("[cargo-miri rustdoc]", verbose, &cmd);
711711
exec(cmd)

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
847e3ee6b0e614937eee4e6d8f61094411eadcc0
1+
555e1d0386f024a8359645c3217f4b3eae9be042

0 commit comments

Comments
 (0)