Skip to content

Add a default directory for -Zdump-mir-dir #47426

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 3 commits into from
Jan 17, 2018

Conversation

varkor
Copy link
Member

@varkor varkor commented Jan 14, 2018

The current behaviour of dumping in the current directory is rarely
desirable: a sensible default directory for dumping is much more
convenient. This makes sets the default value for -Zdump-mir-dir
to mir_dump/.

r? @eddyb

The current behaviour of dumping in the current directory is rarely
desirable: a sensible default directory for dumping is much more
convenient.
@kennytm kennytm added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 14, 2018
@@ -1172,7 +1172,7 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
"emit noalias metadata for mutable references"),
dump_mir: Option<String> = (None, parse_opt_string, [UNTRACKED],
"dump MIR state at various points in translation"),
dump_mir_dir: Option<String> = (None, parse_opt_string, [UNTRACKED],
dump_mir_dir: Option<String> = (Some(String::from("mir_dump")), parse_opt_string, [UNTRACKED],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this be a String instead of Option<String> then?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good point! It's now non-optional.

@eddyb
Copy link
Member

eddyb commented Jan 14, 2018

r? @nikomatsakis

@rust-highfive rust-highfive assigned nikomatsakis and unassigned eddyb Jan 14, 2018
@nikomatsakis
Copy link
Contributor

@bors r+

@bors
Copy link
Collaborator

bors commented Jan 15, 2018

📌 Commit 394b95f has been approved by nikomatsakis

kennytm added a commit to kennytm/rust that referenced this pull request Jan 17, 2018
…matsakis

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. This makes sets the default value for `-Zmir-dump-dir`
to `mir_dump/`.

r? @eddyb
kennytm added a commit to kennytm/rust that referenced this pull request Jan 17, 2018
…matsakis

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. This makes sets the default value for `-Zmir-dump-dir`
to `mir_dump/`.

r? @eddyb
bors added a commit that referenced this pull request Jan 17, 2018
@bors bors merged commit 394b95f into rust-lang:master Jan 17, 2018
@varkor varkor deleted the default-mir-dump-dir branch January 17, 2018 23:50
@varkor varkor changed the title Add a default directory for -Zmir-dump-dir Add a default directory for -Zdump-mir-dir Jan 25, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants