-
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
feat(lint): add default_iter_empty #8989
Conversation
r? @Alexendoo (rust-highfive has picked a reviewer for you, use r? to override) |
0156861
to
31ea7af
Compare
☔ The latest upstream changes (presumably #8964) made this pull request unmergeable. Please resolve the merge conflicts. |
0297db5
to
3da4fa3
Compare
a629bb9
to
a3097e1
Compare
I commited your suggestion. Could I request your review? |
ee253ad
to
01a4ecf
Compare
I pushed some commits. If we need to do |
Yeah a squash would be good thanks |
Update description in clippy_lints/src/default_iter_empty.rs Co-authored-by: Fridtjof Stoldt <[email protected]> Update clippy_lints/src/default_iter_empty.rs Co-authored-by: Alex Macleod <[email protected]> Update clippy_lints/src/default_iter_empty.rs Co-authored-by: Alex Macleod <[email protected]> renamed default_iter_empty to default_instead_of_iter_empty Avoid duplicate messages add tests for regression rewrite 'Why is this bad?' cargo dev fmt delete default_iter_empty lint in renamed_lint.rs rewrite a message in the suggestion cargo dev update_lints --check
f01e7e5
to
2bb8c45
Compare
Thanks! @bors r+ |
📌 Commit 2bb8c45 has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
close #8915
This PR adds
default_iter_empty
lint.This lint checks
std::iter::Empty::default()
and replace withstd::iter::empty()
.Thank you in advance.
changelog: add
default_instead_of_iter_empty
lint.