-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Enable path trimming for error messages in clippy #7212
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 most likely related to #6385 This is the second issue in a short time that came up in this regard, it might be that there has been a change that increased the frequency 🤔 |
Hi, any updates on this issue? |
Hey, there hasn't been any progress to my knowledge, probably also because as with #6385 there hasn't been any leads where to start looking for the issue. Your linked commit could have something todo with it and is a new idea to look into. 🙃 |
I opened a tracking issue for this at #7798 since there is some refactoring needed to support this. |
Consider this code:
When using "cargo check" the error message uses trimmed type paths and is much more readable:
But when running "cargo clippy" you get this output:
I have rust-analyzer set to always run clippy instead of check and as a result I get worse error messages inside the IDE.
Please consider enabling path trimming for clippy.
The text was updated successfully, but these errors were encountered: