File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -816,11 +816,12 @@ fn phase_cargo_rustdoc(fst_arg: &str, mut args: env::Args) {
816816
817817 // Because of the way the main function is structured, we have to take the first argument spearately
818818 // from the rest; to simplify the following argument patching loop, we'll just skip that one.
819- // This is fine for now, because cargo will never pass an --extern argument in the first position,
819+ // This is fine for now, because cargo will never pass the relevant arguments in the first position,
820820 // but we should defensively assert that this will work.
821821 let extern_flag = "--extern" ;
822822 let runtool_flag = "--runtool" ;
823823 assert ! ( fst_arg != extern_flag) ;
824+ assert ! ( fst_arg != runtool_flag) ;
824825 cmd. arg ( fst_arg) ;
825826
826827 while let Some ( arg) = args. next ( ) {
You can’t perform that action at this time.
0 commit comments