-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Fix branches-sharing-code suggests wrongly on const and static
#15522
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
base: master
Are you sure you want to change the base?
Conversation
|
Lintcheck changes for f83c72f
This comment will be updated if you push new changes |
8fbd252 to
c1f05aa
Compare
|
r? clippy |
|
r? clippy |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
r? clippy |
|
r? clippy |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
r? clippy |
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.
Great pull request, sorry that it took this much to review, it was pretty daunting when looking through the code.
| } | ||
| }, | ||
| (ItemKind::Mod(l_ident, l_mod), ItemKind::Mod(r_ident, r_mod)) => { | ||
| l_ident.name == r_ident.name && over(l_mod.item_ids, r_mod.item_ids, |l, r| self.eq_item(*l, *r)) |
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 know that it's technically outside the scope of the PR, but could you change the eq_fn on over to be is_equal? Having the nomenclature for a closure be equal to the existing eq_fn_sig, eq_fn_decl is a bit confusing...
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.
Umm, what is_equal?
|
Reminder, once the PR becomes ready for a review, use |
|
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
Closes #15347
changelog: [
branches-sharing-code] fix wrong suggestions onconstandstatic