Skip to content

Commit

Permalink
compiletest: mir_dump_dir.as_path() -> &mir_dump_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Enselic committed Mar 20, 2024
1 parent b7dcabe commit 352587a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/compiletest/src/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2470,7 +2470,7 @@ impl<'test> TestCx<'test> {

let mir_dump_dir = self.get_mir_dump_dir();
let _ = fs::remove_dir_all(&mir_dump_dir);
create_dir_all(mir_dump_dir.as_path()).unwrap();
create_dir_all(&mir_dump_dir).unwrap();
let mut dir_opt = "-Zdump-mir-dir=".to_string();
dir_opt.push_str(mir_dump_dir.to_str().unwrap());
debug!("dir_opt: {:?}", dir_opt);
Expand Down

0 comments on commit 352587a

Please sign in to comment.