Skip to content

Commit 63613b6

Browse files
committed
Style/comment adjustment
1 parent c92423b commit 63613b6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

cargo-miri/bin.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ fn exec(mut cmd: Command) -> ! {
258258
let exit_status = cmd.status().expect("failed to run command");
259259
std::process::exit(exit_status.code().unwrap_or(-1))
260260
}
261-
// On Unix targets, actually exec
261+
// On Unix targets, actually exec.
262262
// If exec returns, process setup has failed. This is the same error condition as the expect in
263263
// the non-Unix case.
264264
#[cfg(unix)]
@@ -281,11 +281,9 @@ where
281281
{
282282
// Write the bytes we want to send to stdin out to a file
283283
std::fs::write(&path, input).unwrap();
284-
285284
// Open the file for reading, and set our new stdin to it
286285
let stdin = File::open(&path).unwrap();
287286
cmd.stdin(stdin);
288-
289287
// Unlink the file so that it is fully cleaned up as soon as the new process exits
290288
std::fs::remove_file(&path).unwrap();
291289
exec(cmd)
@@ -924,7 +922,7 @@ fn phase_rustc(mut args: impl Iterator<Item = String>, phase: RustcPhase) {
924922
let mut args = env.args.clone();
925923
for i in 0..args.len() {
926924
if args[i] == "-o" {
927-
args[i + 1].push_str("_miri");
925+
args[i + 1].push_str(".miri");
928926
}
929927
}
930928

0 commit comments

Comments
 (0)