Skip to content
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

Prevent rustc stderr/stdout from being duplicated. #4230

Merged
merged 1 commit into from
Jun 27, 2017

Conversation

Mark-Simulacrum
Copy link
Member

Please review carefully. I've not submitted patches to Cargo before, I think, so this may be flawed in some way I haven't detected yet. Tests are green locally, though.

Fixes #4223

@rust-highfive
Copy link

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (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.

@alexcrichton
Copy link
Member

Looks good! Would it be possible to add a test for this?

@Mark-Simulacrum
Copy link
Member Author

I'd guess it'd be somewhat hard -- I'd have to check for a lack of output. I worry that that would make the test too specific; but if you'd like I can look into adding one -- I believe I'd probably edit test/rustc.rs and add a test case?

@alexcrichton
Copy link
Member

Oh yeah most Cargo test caes exhaustively match the output, so it shouldn't be too hard to test for a lack of output (just don't write it down but be sure to add some assertion). Anywhere's fine by me!

@Mark-Simulacrum
Copy link
Member Author

Added a test, and confirmed it doesn't pass on master and does pass on this branch.

@alexcrichton
Copy link
Member

@bors: r+

@bors
Copy link
Contributor

bors commented Jun 27, 2017

📌 Commit f377ae2 has been approved by alexcrichton

@bors
Copy link
Contributor

bors commented Jun 27, 2017

⌛ Testing commit f377ae2 with merge 854bc16...

bors added a commit that referenced this pull request Jun 27, 2017
Prevent rustc stderr/stdout from being duplicated.

Please review carefully. I've not submitted patches to Cargo before, I think, so this may be flawed in some way I haven't detected yet. Tests are green locally, though.

Fixes #4223
@bors
Copy link
Contributor

bors commented Jun 27, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing 854bc16 to master...

@bors bors merged commit f377ae2 into rust-lang:master Jun 27, 2017
@ehuss ehuss added this to the 1.20.0 milestone Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cargo prints rustc's stderr twice
5 participants