Skip to content

Commit f41d72c

Browse files
committed
Rename helper function
1 parent 8b29e57 commit f41d72c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cargo-miri/bin.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ fn phase_cargo_rustc(args: env::Args) {
708708
}
709709
}
710710

711-
fn try_forward_patched_extern_arg(args: &mut impl Iterator<Item = String>, cmd: &mut Command) {
711+
fn forward_patched_extern_arg(args: &mut impl Iterator<Item = String>, cmd: &mut Command) {
712712
cmd.arg("--extern"); // always forward flag, but adjust filename:
713713
let path = args.next().expect("`--extern` should be followed by a filename");
714714
if let Some(lib) = path.strip_suffix(".rlib") {
@@ -757,7 +757,7 @@ fn phase_cargo_runner(binary: &Path, binary_args: env::Args) {
757757
let json_flag = "--json";
758758
while let Some(arg) = args.next() {
759759
if arg == extern_flag {
760-
try_forward_patched_extern_arg(&mut args, &mut cmd);
760+
forward_patched_extern_arg(&mut args, &mut cmd);
761761
} else if arg.starts_with(error_format_flag) {
762762
let suffix = &arg[error_format_flag.len()..];
763763
assert!(suffix.starts_with('='));
@@ -826,7 +826,7 @@ fn phase_cargo_rustdoc(fst_arg: &str, mut args: env::Args) {
826826
while let Some(arg) = args.next() {
827827
if arg == extern_flag {
828828
// Patch --extern arguments to use *.rmeta files, since phase_cargo_rustc only creates stub *.rlib files.
829-
try_forward_patched_extern_arg(&mut args, &mut cmd);
829+
forward_patched_extern_arg(&mut args, &mut cmd);
830830
} else if arg == runtool_flag {
831831
// Do not forward an existing --runtool argument, since we will set this ourselves
832832
let _ = args.next().expect("`--runtool` should be followed by an executable name");

0 commit comments

Comments
 (0)