File tree 1 file changed +2
-1
lines changed
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) {
816
816
817
817
// Because of the way the main function is structured, we have to take the first argument spearately
818
818
// 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,
820
820
// but we should defensively assert that this will work.
821
821
let extern_flag = "--extern" ;
822
822
let runtool_flag = "--runtool" ;
823
823
assert ! ( fst_arg != extern_flag) ;
824
+ assert ! ( fst_arg != runtool_flag) ;
824
825
cmd. arg ( fst_arg) ;
825
826
826
827
while let Some ( arg) = args. next ( ) {
You can’t perform that action at this time.
0 commit comments