-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add new lint mismatching_type_param_order
#8831
Conversation
r? @flip1995 (rust-highfive has picked a reviewer for you, use r? to override) |
[
type_param_mismatch]
`[type_param_mismatch]
[type_param_mismatch]
type_param_mismatch
337ca0c
to
478c410
Compare
☔ The latest upstream changes (presumably #8832) made this pull request unmergeable. Please resolve the merge conflicts. |
r? @dswij Could you review this, once the merge conflicts are resolved? 🙃 |
Merge conflicts are fixed |
☔ The latest upstream changes (presumably #8882) made this pull request unmergeable. Please resolve the merge conflicts. |
Sorry, I forgot that this was in my review queue. I've taken a brief look, but got distracted. Will review this soon |
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.
Thanks for the PR (and waiting patiently for the review)! 👍
I'd like to apologize first for forgetting to review this for a while.
The PR looks great overall. But I think we should name the lint type_param_order_mismatch
since we're only checking the order. type_param_mismatch
is a little bit ambiguous. What do you think?
Agreed, good catch! The name should ideally be plural to align with rust's lint naming guidelines. So, |
7261ee2
to
d606288
Compare
Renamed lint, thanks for the suggestion. Also resolved merge conflicts and a few other things. |
type_param_mismatch
mismatching_type_param_order
☔ The latest upstream changes (presumably #8918) made this pull request unmergeable. Please resolve the merge conflicts. |
Add new lint for checking if type parameters are consistent between type definitions and impl blocks.
Added hashmap, changed the help message, resolved merge conflicts |
This looks good, thanks for this! @bors r+ |
📌 Commit 58cd01c has been approved by |
Add new lint `mismatching_type_param_order` changelog: Add new lint `mismatching_type_param_order` for checking if type parameters are consistent between type definitions and impl blocks. fixes #7147
💔 Test failed - checks-action_test |
Whoops, seems like it doesn't like the changelog. |
@bors retry |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
changelog: Add new lint [
mismatching_type_param_order
] for checking if type parameters are consistent between type definitions and impl blocks.fixes #7147