Skip to content
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

Lint path statements to suggest using drop when the type needs drop #75056

Merged
merged 1 commit into from
Aug 4, 2020

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Aug 2, 2020

Fixes #48852. With this change the current lint description doesn't really fit entirely anymore I think.

@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @oli-obk (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 2, 2020
@oli-obk
Copy link
Contributor

oli-obk commented Aug 2, 2020

@bors r+

Thanks! that was quite a long-standing issue

@bors
Copy link
Contributor

bors commented Aug 2, 2020

📌 Commit 4eab8bce82cddfccc9a7392bec180b205110b79a has been approved by oli-obk

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 2, 2020
@molenzwiebel
Copy link

Just for completeness, should this also include a test for types that have drop glue but don't impl Drop themselves? An example being a single-element tuple that contains a Drop type.

@oli-obk
Copy link
Contributor

oli-obk commented Aug 2, 2020

@bors r-

That's a good idea

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Aug 2, 2020
@Veykril
Copy link
Member Author

Veykril commented Aug 2, 2020

Added the extra test case

@oli-obk
Copy link
Contributor

oli-obk commented Aug 3, 2020

@bors r+

@bors
Copy link
Contributor

bors commented Aug 3, 2020

📌 Commit 35d6a2e has been approved by oli-obk

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Aug 3, 2020
@oli-obk
Copy link
Contributor

oli-obk commented Aug 3, 2020

@bors rollup

Manishearth added a commit to Manishearth/rust that referenced this pull request Aug 3, 2020
…-obk

Lint path statements to suggest using drop when the type needs drop

Fixes rust-lang#48852. With this change the current lint description doesn't really fit entirely anymore I think.
Manishearth added a commit to Manishearth/rust that referenced this pull request Aug 3, 2020
…-obk

Lint path statements to suggest using drop when the type needs drop

Fixes rust-lang#48852. With this change the current lint description doesn't really fit entirely anymore I think.
Manishearth added a commit to Manishearth/rust that referenced this pull request Aug 3, 2020
…-obk

Lint path statements to suggest using drop when the type needs drop

Fixes rust-lang#48852. With this change the current lint description doesn't really fit entirely anymore I think.
JohnTitor added a commit to JohnTitor/rust that referenced this pull request Aug 3, 2020
…-obk

Lint path statements to suggest using drop when the type needs drop

Fixes rust-lang#48852. With this change the current lint description doesn't really fit entirely anymore I think.
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 4, 2020
Rollup of 8 pull requests

Successful merges:

 - rust-lang#74759 (add `unsigned_abs` to signed integers)
 - rust-lang#75043 (rustc_ast: `(Nested)MetaItem::check_name` -> `has_name`)
 - rust-lang#75056 (Lint path statements to suggest using drop when the type needs drop)
 - rust-lang#75081 (Fix logging for rustdoc)
 - rust-lang#75083 (Do not trigger `unused_braces` for `while let`)
 - rust-lang#75084 (Stabilize Ident::new_raw)
 - rust-lang#75103 (Disable building rust-analyzer on riscv64)
 - rust-lang#75106 (Enable docs on in the x86_64-unknown-linux-musl manifest)

Failed merges:

r? @ghost
@bors bors merged commit 485bfa7 into rust-lang:master Aug 4, 2020
@cuviper cuviper added this to the 1.47.0 milestone May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"path statement with no effect" issued even when drop makes effect
6 participants