-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Internal lint: suggest is_type_diagnostic_item
over match_type
where applicable
#6013
Conversation
r? @yaahc (rust_highfive has picked a reviewer for you, use r? to override) |
☔ The latest upstream changes (presumably #6006) made this pull request unmergeable. Please resolve the merge conflicts. |
d3f0a68
to
57933e5
Compare
This is a great idea. Is there any reason to save the path to a diagnostic item at all? I think it might be easier to loop through the lines of Maybe you could make a similar lint to check for lang items as well. |
Yeah my initial idea was to get rid of diagnostic items in the But you make me think that maybe we could work on the clippy If you agree I would go with merging this before, knowing it only addresses a part of the problem. I think it can be helpful to avoid missing it in the reviews. |
I think it's an good improvement as is. I'm happy with whatever you and the reviewer decide. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that we can merge this as is. Doing the same with LangItem
s would be great. Please address the comment by @giraffate and r=me after that.
57933e5
to
ec26c8e
Compare
ec26c8e
to
d0b5663
Compare
@bors r=flip1995 |
📌 Commit d0b5663 has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
changelog: none