-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Added error-format flag to x.py. #48517
Conversation
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. |
This looks good, thank you! @bors r+ rollup |
📌 Commit 264a921 has been approved by |
🌲 The tree is currently closed for pull requests below priority 100, this pull request will be tested once the tree is reopened |
Added error-format flag to x.py. Fixes rust-lang#48475 r? @Mark-Simulacrum
This isn't enough, actually. The reason RUSTFLAGS doesn't just work here is because we ask cargo for Then we strip out json from the output and read it, only passing through stuff that isn't json. We'll need to make that pass smarter, where it detects which JSON messages come from cargo and only strips those out. |
Hm, yeah. Ideally we'd tell rustc somehow that it's messages should go to a different file descriptor (which might be possible as we wrap rustc anyway...). Easiest thing to do for now though is probably to print out the line we received here: https://github.com/penpalperson/rust/blob/264a92182e037c46cdcf37890e3142eaf634444d/src/bootstrap/compile.rs#L1011, since that should be enough to catch all cargo-related messages. @penpalperson Are you interested in making that change? |
Fixes #48475
r? @Mark-Simulacrum