-
Notifications
You must be signed in to change notification settings - Fork 13.4k
On compiler error, the compiler says "try running with RUST_LOG=rustc=1": does that do anything? #10906
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
This is all working as intended. The compiler may print more diagnostic information depending on certain types of errors, but in this case it appears that the compiler did not deem it relevant to print more information. |
OK, but perhaps it should note that? Right now, it still gives the note |
we could improve the output message slightly here, though i'm not sure it will matter too much. |
I feel like this message is basically useless and I pretty much totally ignore it. I think we should just remove it until we have error codes that we can link to documentation pages for or something. Does anyone use this diagnostic at all in practice? |
@metajack I think I have seen some bug reports that have had helpful debug information included in them due to the use of RUST_LOG, but I don't know if they were these uses of RUST_LOG. (E.g. I don't know if the instructions provided by the message actually correspond to what is helpful to us.) Still I think its worthwhile to give people a hint as to what they might investigate if they want to do more investigation on their own. WIthout the RUST_LOG message from rustc, it might have been a lot longer before I started using its various modes for accessing the logging instrumentation in the binaries. So I'd still be in favor of keeping some sort of message. |
Perhaps this message should instruct the user to play around with |
I got a compiler error earlier, and noted that it said `note: try running with RUST_LOG=rustc=1 to get further details and report the results to github.com/mozilla/rust/issues'. I did run it like that:
No new files were created in that directory, and I have no idea what that command did. Perhaps that note in the compiler could be clarified (or removed if it doesn't do anything)?
The text was updated successfully, but these errors were encountered: