We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af89d71 commit 09bffb5Copy full SHA for 09bffb5
1 file changed
src/tools/miri/src/bin/miri.rs
@@ -225,7 +225,8 @@ impl rustc_driver::Callbacks for MiriCompilerCalls {
225
let mut config = self.miri_config.take().expect("after_analysis must only be called once");
226
// Add filename to `miri` arguments.
227
let exe_path = tcx.output_filenames(()).path(OutputType::Exe);
228
- config.args.insert(0, exe_path.as_path().to_string_lossy().to_string());
+ let exe_stem = exe_path.filestem().unwrap().to_string_lossy();
229
+ config.args.insert(0, exe_stem.to_string());
230
231
// Adjust working directory for interpretation.
232
if let Some(cwd) = env::var_os("MIRI_CWD") {
0 commit comments