You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let verbose = std::env::var_os("MIRI_VERBOSE").is_some();
557
563
558
-
// Strip extension from binary name (Windows adds ".exe").
559
-
letmut filename = PathBuf::from(binary);
560
-
filename.set_extension("");
561
-
let file = File::open(&filename)
564
+
let file = File::open(&binary)
562
565
.unwrap_or_else(|_| show_error(format!("File {:?} not found or `cargo-miri` invoked incorrectly; please only invoke this binary through `cargo miri`", binary)));
563
566
let file = BufReader::new(file);
564
567
let info:CrateRunInfo = serde_json::from_reader(file)
565
568
.unwrap_or_else(|_| show_error(format!("File {:?} does not contain valid JSON", binary)));
566
-
fs::remove_file(&filename)
567
-
.unwrap_or_else(|_| show_error(format!("Unable to remove file {:?}", binary)));
568
569
569
570
letmut cmd = miri();
570
571
// Forward rustc arguments. We need to patch "--extern" filenames because
0 commit comments