-
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
[significant_drop_tightening] Add MVP #10163
Conversation
r? @llogiq (rustbot has picked a reviewer for you, use r? to override) |
Feel free to add the tests and implementation. Then I'll try and have a review within the next 7 days or possibly sooner, so we don't need to carry incomplete code through. |
@llogiq If you have the bandwidth to review a full PR, then I will reach back to you in the following weeks with a more mature implementation. |
@rustbot author |
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.
@llogiq The lint is now in a minimal functional state for experimentation in the sense that it will detect and suggest some situations were a path/bind/variable marked with #[clippy::has_significant_drop]
is being dropped at the end of its encapsulated block.
Pretty much as arithmetic_side_effects
; rough edges, bugs and enhancements will be figured out in a sequence of future subsequent PRs.
Formatting check failed.
Run `cargo dev fmt` to update formatting. |
a746638
to
7e1f6bf
Compare
@rustbot label -S-waiting-on-author +S-waiting-on-review |
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.
Thank you! In general, this looks good. It certainly meets our standards for a nursery lint. I have but a few niggles on code style, please address them, and then I'll gladly r+.
One final nit, then I'll be happy to have bors merge this. |
Thank you! @bors r+ |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
1 similar comment
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Thanks @llogiq |
cc #9399
Creates the lint with minimum functionalities, which is a good start IMO.
changelog: new lint: [
significant_drop_tightening
]#10163