@@ -666,8 +666,8 @@ pub fn phase_rustdoc(mut args: impl Iterator<Item = String>) {
666
666
if arg == "--extern" {
667
667
// Patch --extern arguments to use *.rmeta files, since phase_cargo_rustc only creates stub *.rlib files.
668
668
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.
671
671
// Note that this is only passed when cargo is run with the unstable -Zdoctest-xcompile flag;
672
672
// otherwise, we won't be called as rustdoc at all.
673
673
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>) {
693
693
// to let phase_cargo_rustc know to expect that. We'll use this environment variable as a flag:
694
694
cmd. env ( "MIRI_CALLED_FROM_RUSTDOC" , "1" ) ;
695
695
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:
698
698
cmd. arg ( "-Zunstable-options" ) ;
699
699
700
700
// rustdoc needs to know the right sysroot.
@@ -705,7 +705,7 @@ pub fn phase_rustdoc(mut args: impl Iterator<Item = String>) {
705
705
// Make rustdoc call us back.
706
706
let cargo_miri_path = env:: current_exe ( ) . expect ( "current executable path invalid" ) ;
707
707
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
709
709
710
710
debug_cmd ( "[cargo-miri rustdoc]" , verbose, & cmd) ;
711
711
exec ( cmd)
0 commit comments