-
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
Fix manual_map
false positives
#6801
Conversation
r? @phansch (rust-highfive has picked a reviewer for you, use r? to override) |
Should probably also revert #6796 |
Fix `manual_map`: don't lint when `return`, `break`, and `continue` are used.
4616e9c
to
09a827a
Compare
There is also a bug where macros are expanded in the suggestion (for example, if you map like this: You might be able to fix this by using 5d48b91#diff-91a6b641836ec4d791eef672694e2e955b77f9b9e287fcbaacbdb83b3734acabL190 |
4f2559c
to
a3278a1
Compare
@bors r+ thanks! |
📌 Commit 2c485e3 has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
fixes: #6795
fixes: #6797
fixes: #6811
fixes: #6819
changelog: Fix false positives for
manual_map
whenreturn
,break
,continue
,yield
,await
, and partially moved values are used.changelog: Don't expand macros in suggestions for
manual_map