File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
src/tools/compiletest/src Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1513,6 +1513,14 @@ impl<'test> TestCx<'test> {
1513
1513
let set_mir_dump_dir = |rustc : & mut Command | {
1514
1514
let mir_dump_dir = self . get_mir_dump_dir ( ) ;
1515
1515
remove_and_create_dir_all ( & mir_dump_dir) . unwrap_or_else ( |e| {
1516
+ let remaining = vec ! [ ] ;
1517
+ for f 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. to_path_buf ( ) ) ;
1521
+ }
1522
+ eprintln ! ( "mir_dump_dir = {mir_dump_dir}, remaining = {:#?}" , remaining) ;
1523
+
1516
1524
panic ! ( "failed to remove and recreate output directory `{mir_dump_dir}`: {e}" )
1517
1525
} ) ;
1518
1526
let mut dir_opt = "-Zdump-mir-dir=" . to_string ( ) ;
You can’t perform that action at this time.
0 commit comments