Skip to content

Commit b1498b0

Browse files
committed
[DO NOT MERGE] compiletest: verbose mir_dump removal logging
1 parent b8005bf commit b1498b0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/tools/compiletest/src/runtest.rs

+8
Original file line numberDiff line numberDiff line change
@@ -1513,6 +1513,14 @@ impl<'test> TestCx<'test> {
15131513
let set_mir_dump_dir = |rustc: &mut Command| {
15141514
let mir_dump_dir = self.get_mir_dump_dir();
15151515
remove_and_create_dir_all(&mir_dump_dir).unwrap_or_else(|e| {
1516+
let mut remaining = vec![];
1517+
for entry in walkdir::WalkDir::new(mir_dump_dir.as_std_path()) {
1518+
let entry =
1519+
entry.unwrap_or_else(|e| panic!("failed to walk {mir_dump_dir}: {e}"));
1520+
remaining.push(entry.path().to_path_buf());
1521+
}
1522+
eprintln!("mir_dump_dir = {mir_dump_dir}, remaining = {:#?}", remaining);
1523+
15161524
panic!("failed to remove and recreate output directory `{mir_dump_dir}`: {e}")
15171525
});
15181526
let mut dir_opt = "-Zdump-mir-dir=".to_string();

0 commit comments

Comments
 (0)