-
Notifications
You must be signed in to change notification settings - Fork 2.6k
cargo directly piping rustc output generates confusion with --explain #1554
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
Comments
In the past we had lots of problems if we didn't just blindly pipe the output of the compiler back to the user, so I'm not sure how much Cargo itself can do here other than add an |
Anything that avoids the confusion. :) What if |
I'd probably prefer to just change the wording to say something like "Run |
"Run More generally though, this was just one case of a newbie - i.e. me, or perhaps I'm just passing the newbie stage, since I didn't actually need the extended explanation! I was just curious what it said - being tripped up by Cargo & (what I see as) the rest of Rust not playing nicely together as I expect. Another example is More succinctly, it's my expectation that I never need to know about rustc or its intricacies when using cargo. Now, maybe you aren't intending to meet that expectation. However, I can't remember the last time I had to interact with |
@caspark the
Aha interesting! I had never really thought about it this way, and I suspect that's probably because I'm a little biased! This is definitely an interesting perspective to take, though, and something to keep in mind. |
@alexcrichton I think the point about (That is, someone using only cargo and no rustc finds it disconcerting that cargo understands nothing.) |
Yep - what @huonw said about |
The error message looks a lot like
cargo build --explain ...
should work, but it's really rustc telling the user to pass that flag to rustc, and cargo is just dumping rustc's output straight out.The text was updated successfully, but these errors were encountered: