Skip to content

Create directory for dump-mir-dir automatically #42402

New issue

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

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

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 4, 2017

Conversation

citizen428
Copy link
Contributor

Fixes #35543 r? @Mark-Simulacrum

@Mark-Simulacrum I know someone else said that they'll work on this, but it has been 3+ weeks and I had nothing to do and wanted to contribute a bit.

I now added the call to automatically create the directory as discussed, but was wondering how you feel about the suggestion to set a default directory, i.e. target/mir?

@rust-highfive
Copy link
Contributor

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Mark-Simulacrum (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@Mark-Simulacrum
Copy link
Member

Let's leave the suggestion to set a default for later; I don't think there's any good option -- target/mir presumes a Cargo project without workspaces, which seems non-ideal.

The changes here look good, though it looks like there are some Travis errors, but otherwise r=me once those are fixed.

@citizen428 citizen428 force-pushed the create-dump-mir-dir branch from 01ed626 to 2a37364 Compare June 3, 2017 18:05
@Mark-Simulacrum
Copy link
Member

Let's actually just ignore the error when creating it let _ = ..., that seems to be the thing to do in this function judging by the code below. It also looks like some submodule updates and Cargo.lock changes snuck in, could you remove those?

@Mark-Simulacrum Mark-Simulacrum added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Jun 4, 2017
@citizen428 citizen428 force-pushed the create-dump-mir-dir branch from 2a37364 to 82caf21 Compare June 4, 2017 03:08
@citizen428
Copy link
Contributor Author

@Mark-Simulacrum It's done.

@Mark-Simulacrum
Copy link
Member

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Jun 4, 2017

📌 Commit 82caf21 has been approved by Mark-Simulacrum

@Mark-Simulacrum Mark-Simulacrum added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jun 4, 2017
@bors
Copy link
Collaborator

bors commented Jun 4, 2017

⌛ Testing commit 82caf21 with merge 9a4e13f...

bors added a commit that referenced this pull request Jun 4, 2017
Create directory for dump-mir-dir automatically

Fixes #35543 r? @Mark-Simulacrum

@Mark-Simulacrum I know someone else said that they'll work on this, but it has been 3+ weeks and I had nothing to do and wanted to contribute a bit.

I now added the call to automatically create the directory as discussed, but was wondering how you feel about the suggestion to set a default directory, i.e. `target/mir`?
@bors
Copy link
Collaborator

bors commented Jun 4, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: Mark-Simulacrum
Pushing 9a4e13f to master...

@bors bors merged commit 82caf21 into rust-lang:master Jun 4, 2017
@wdv4758h
Copy link
Contributor

wdv4758h commented Jun 5, 2017

Sorry for that, I haven't spend any time on that issue within 3+ weeks, nice job @citizen428 😃

@citizen428 citizen428 deleted the create-dump-mir-dir branch June 5, 2017 08:59
@citizen428
Copy link
Contributor Author

No problem @wdv4758h 😃 I had a short amount of time and was looking for an easy issue to clean out, this was it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants