Skip to content

Commit 9083e00

Browse files
committed
resolve semantic conflicts
1 parent dd393f2 commit 9083e00

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

cargo-miri/bin.rs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ fn phase_cargo_miri(mut args: env::Args) {
572572
// us in order to skip them.
573573
cmd.env(&host_runner_env_name, &cargo_miri_path);
574574

575-
// Set rustdoc to us as well, so we can make it do nothing (see issue #584).
575+
// Set rustdoc to us as well, so we can run doctests.
576576
cmd.env("RUSTDOC", &cargo_miri_path);
577577

578578
// Run cargo.
@@ -784,18 +784,6 @@ fn phase_cargo_rustc(mut args: env::Args) {
784784
}
785785
}
786786

787-
fn forward_patched_extern_arg(args: &mut impl Iterator<Item = String>, cmd: &mut Command) {
788-
cmd.arg("--extern"); // always forward flag, but adjust filename:
789-
let path = args.next().expect("`--extern` should be followed by a filename");
790-
if let Some(lib) = path.strip_suffix(".rlib") {
791-
// If this is an rlib, make it an rmeta.
792-
cmd.arg(format!("{}.rmeta", lib));
793-
} else {
794-
// Some other extern file (e.g. a `.so`). Forward unchanged.
795-
cmd.arg(path);
796-
}
797-
}
798-
799787
fn phase_cargo_runner(binary: &Path, binary_args: env::Args) {
800788
let verbose = std::env::var_os("MIRI_VERBOSE").is_some();
801789

0 commit comments

Comments
 (0)