-
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
[map_identity
]: recognize tuple identity function
#10943
Conversation
r? @llogiq (rustbot has picked a reviewer for you, use r? to override) |
Now it should not lint on type-ascribing identities, otherwise looks good. |
My other PR #11521 should do this, right? Would it make sense to get that in first? |
🔒 Merge conflict This pull request and the master branch diverged in a way that cannot be automatically merged. Please rebase on top of the latest master branch, and let the reviewer approve again. How do I rebase?Assuming
You may also read Git Rebasing to Resolve Conflicts by Drew Blessing for a short tutorial. Please avoid the "Resolve conflicts" button on GitHub. It uses Sometimes step 4 will complete without asking for resolution. This is usually due to difference between how Error message
|
Yeah, I knew these conflicts were gonna happen :D will fix them in a couple hours. |
☔ The latest upstream changes (presumably #11521) made this pull request unmergeable. Please resolve the merge conflicts. |
875de5b
to
41bf5d2
Compare
☔ The latest upstream changes (presumably #11694) made this pull request unmergeable. Please resolve the merge conflicts. |
@bors delegate+ |
Rebased. |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Fixes #7189
This lint now recognizes
.map(|(a, b)| (a, b))
as a uselessmap
call.changelog: [
map_identity
]: recognize tuple identity function