Skip to content

Commit a22e716

Browse files
committed
Add a default directory for -Zmir-dump-dir
The current behaviour of dumping in the current directory is rarely desirable: a sensible default directory for dumping is much more convenient.
1 parent 0b90e4e commit a22e716

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/session/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1172,7 +1172,7 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
11721172
"emit noalias metadata for mutable references"),
11731173
dump_mir: Option<String> = (None, parse_opt_string, [UNTRACKED],
11741174
"dump MIR state at various points in translation"),
1175-
dump_mir_dir: Option<String> = (None, parse_opt_string, [UNTRACKED],
1175+
dump_mir_dir: Option<String> = (Some(String::from("mir_dump")), parse_opt_string, [UNTRACKED],
11761176
"the directory the MIR is dumped into"),
11771177
dump_mir_graphviz: bool = (false, parse_bool, [UNTRACKED],
11781178
"in addition to `.mir` files, create graphviz `.dot` files"),

0 commit comments

Comments
 (0)