Skip to content

Commit a815a42

Browse files
committed
Update assertion
1 parent f41d72c commit a815a42

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cargo-miri/bin.rs

+2-1
Original file line numberDiff line numberDiff 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() {

0 commit comments

Comments
 (0)