@@ -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)
0 commit comments