We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Warns the user on a Drop impl that does nothing
Drop
empty_drop
correctness
None
struct Foo; impl Drop for Foo { fn drop(&mut self) {} }
Could be written as:
struct Foo;
The text was updated successfully, but these errors were encountered:
Auto merge of #8571 - PyroTechniac:empty-drop, r=flip1995
8848535
add `empty_drop` Closes #8352 changelog: New lint [`empty_drop`]
a9d31e7
Successfully merging a pull request may close this issue.
What it does
Warns the user on a
Drop
impl that does nothingLint Name
empty_drop
Category
correctness
Advantage
Drop
implDrawbacks
None
Example
Could be written as:
The text was updated successfully, but these errors were encountered: