Skip to content

Commit 7a9499d

Browse files
committed
Auto merge of rust-lang#140116 - jieyouxu:exp/verbose-remove-failure, r=<try>
[EXPERIMENTAL] `tests/mir-opt/strip_debuginfo.rs` failure investigation cc rust-lang#140096 (comment), rust-lang#139727 (comment). cf. rust-lang#134351. (Yes this isn't robust, but just in case) r? ghost try-job: x86_64-apple-1 try-job: x86_64-msvc-1 try-job: dist-x86_64-msvc
2 parents b8005bf + b1498b0 commit 7a9499d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: 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)