-
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
explicit_deref_methods
improvements
#6865
Conversation
r? @llogiq (rust-highfive has picked a reviewer for you, use r? to override) |
a8e4a5e
to
84dbde4
Compare
I think you need to re-bless some UI test results. |
09995d1
to
ee1d796
Compare
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.
In general this seems like mostly a solid improvement! It just needs a small bit of work before we merge it.
Some(Node::Expr(e)) => e, | ||
_ => return true, | ||
}; | ||
match parent.kind { |
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.
Don't we have a utils function for this?
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.
Not to go from a node to an expression.
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.
Then maybe this should be moved to utils, we might want to use it elsewhere. But that's not a blocker.
585742d
to
351f3b5
Compare
☔ The latest upstream changes (presumably #6881) made this pull request unmergeable. Please resolve the merge conflicts. |
Sorry for taking so long. r=me after a rebase. |
Fix suggestion for `explicit_deref_methods`. Sometimes `&**` is needed, sometimes nothing is needed. Allow `explicit_deref_methods` to trigger in a few new contexts. `explicit_deref_methods` will now consider ufcs calls
Remove more unnecessary code
351f3b5
to
2713ad4
Compare
Thank you! @bors r+ |
📌 Commit 2713ad4 has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Breaking up #6837
changelog:
explicit_deref_methods
will lint chainedderef
calls and ufcs style calls