Skip to content

Commit 82caf21

Browse files
committed
Create directory for dump-mir-dir automatically
Fixes #35543
1 parent 14526a3 commit 82caf21

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc_mir/util/pretty.rs

+1
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ fn dump_matched_mir_node<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
111111
let p = Path::new(file_dir);
112112
file_path.push(p);
113113
};
114+
let _ = fs::create_dir_all(&file_path);
114115
let file_name = format!("rustc.node{}{}{}.{}.{}.mir",
115116
source.item_id(), promotion_id, pass_num, pass_name, disambiguator);
116117
file_path.push(&file_name);

0 commit comments

Comments
 (0)