Skip to content

Fix the misleading diagnostic for let_underscore_drop on type without Drop implementation - #130833

Merged
bors merged 1 commit into
rust-lang:masterfrom
makai410:master
Sep 27, 2024
Merged

Fix the misleading diagnostic for let_underscore_drop on type without Drop implementation#130833
bors merged 1 commit into
rust-lang:masterfrom
makai410:master

Conversation

@makai410

Copy link
Copy Markdown
Member

Closes: #130430
r? rust-lang/diagnostics

@rustbot

Copy link
Copy Markdown
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @chenyukang (or someone else) some time within the next two weeks.

Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (S-waiting-on-review and S-waiting-on-author) stays updated, invoking these commands when appropriate:

  • @rustbot author: the review is finished, PR author should check the comments and take action accordingly
  • @rustbot review: the author is ready for a review, this PR will be queued again in the reviewer's queue

@rustbotrustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Sep 25, 2024
@rustbot

Copy link
Copy Markdown
Collaborator

rust-analyzer is developed in its own repository. If possible, consider making this change to rust-lang/rust-analyzer instead.

cc @rust-lang/rust-analyzer

Comment threadsrc/tools/rust-analyzer/crates/ide-db/src/generated/lints.rs Outdated
@compiler-errorscompiler-errors 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-review Status: Awaiting review from the assignee but also interested parties. labels Sep 25, 2024
@rustbotrustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Sep 26, 2024
@fee1-dead

Copy link
Copy Markdown
Member

@bors r+ rollup

@bors

bors commented Sep 26, 2024

Copy link
Copy Markdown
Collaborator

📌 Commit d5657c1 has been approved by fee1-dead

It is now in the queue for this repository.

@borsbors 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 Sep 26, 2024
@fee1-dead

Copy link
Copy Markdown
Member

@bors r=fee1-dead,compiler-errors

@bors

bors commented Sep 26, 2024

Copy link
Copy Markdown
Collaborator

💡 This pull request was already approved, no need to approve it again.

@bors

bors commented Sep 26, 2024

Copy link
Copy Markdown
Collaborator

📌 Commit d5657c1 has been approved by fee1-dead,compiler-errors

It is now in the queue for this repository.

@compiler-errors

Copy link
Copy Markdown
Contributor

@bors r-

Please rebase this into one commit; none of this PR's history should need to be synced next time that rust-analyzer does a subtree sync.

@borsbors 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 Sep 26, 2024
@compiler-errors

Copy link
Copy Markdown
Contributor

Or you can do (making sure you're on this branch):

git reset HEAD~2
git commit -am "Fix the misleading diagnostic for let_underscore_drop on type without Drop implementation"
# then push with `--force-with-lease`

@fee1-dead

Copy link
Copy Markdown
Member

Please rebase this into one commit;

Oops, thanks for catching this! Wasn't looking at the commits log when I reviewed..

@compiler-errors

Copy link
Copy Markdown
Contributor

@bors r=compiler-errors,fee1-dead

@bors

bors commented Sep 26, 2024

Copy link
Copy Markdown
Collaborator

📌 Commit 5892187 has been approved by compiler-errors,fee1-dead

It is now in the queue for this repository.

@borsbors 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 Sep 26, 2024
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Sep 26, 2024
…,fee1-dead
Fix the misleading diagnostic for `let_underscore_drop` on type without `Drop` implementation
Closes: rust-lang#130430
r? rust-lang/diagnostics
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 26, 2024
…iaskrgr
Rollup of 7 pull requests
Successful merges:
- rust-lang#130820 (Fix diagnostics for coroutines with () as input.)
- rust-lang#130833 (Fix the misleading diagnostic for `let_underscore_drop` on type without `Drop` implementation)
- rust-lang#130845 (Utf8Chunks: add link to Utf8Chunk)
- rust-lang#130860 (Fix directives for lint-non-snake-case-crate)
- rust-lang#130861 (Use `mem::offset_of!` for `sockaddr_un.sun_path`)
- rust-lang#130865 (Use `&raw` in the standard library)
- rust-lang#130868 (Update FIXME comment in s390x_unknown_linux_*.rs)
r? `@ghost`
`@rustbot` modify labels: rollup
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Sep 26, 2024
…,fee1-dead
Fix the misleading diagnostic for `let_underscore_drop` on type without `Drop` implementation
Closes: rust-lang#130430
r? rust-lang/diagnostics
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 26, 2024
…iaskrgr
Rollup of 5 pull requests
Successful merges:
- rust-lang#130820 (Fix diagnostics for coroutines with () as input.)
- rust-lang#130833 (Fix the misleading diagnostic for `let_underscore_drop` on type without `Drop` implementation)
- rust-lang#130845 (Utf8Chunks: add link to Utf8Chunk)
- rust-lang#130860 (Fix directives for lint-non-snake-case-crate)
- rust-lang#130868 (Update FIXME comment in s390x_unknown_linux_*.rs)
r? `@ghost`
`@rustbot` modify labels: rollup
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Sep 26, 2024
…,fee1-dead
Fix the misleading diagnostic for `let_underscore_drop` on type without `Drop` implementation
Closes: rust-lang#130430
r? rust-lang/diagnostics
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 26, 2024
…iaskrgr
Rollup of 6 pull requests
Successful merges:
- rust-lang#129687 (Implement RFC3137 trim-paths sysroot changes - take 2)
- rust-lang#130820 (Fix diagnostics for coroutines with () as input.)
- rust-lang#130833 (Fix the misleading diagnostic for `let_underscore_drop` on type without `Drop` implementation)
- rust-lang#130845 (Utf8Chunks: add link to Utf8Chunk)
- rust-lang#130868 (Update FIXME comment in s390x_unknown_linux_*.rs)
- rust-lang#130873 (rustc_target: Add powerpc64 atomic-related features)
r? `@ghost`
`@rustbot` modify labels: rollup
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 26, 2024
…iaskrgr
Rollup of 6 pull requests
Successful merges:
- rust-lang#129687 (Implement RFC3137 trim-paths sysroot changes - take 2)
- rust-lang#130820 (Fix diagnostics for coroutines with () as input.)
- rust-lang#130833 (Fix the misleading diagnostic for `let_underscore_drop` on type without `Drop` implementation)
- rust-lang#130845 (Utf8Chunks: add link to Utf8Chunk)
- rust-lang#130868 (Update FIXME comment in s390x_unknown_linux_*.rs)
- rust-lang#130873 (rustc_target: Add powerpc64 atomic-related features)
r? `@ghost`
`@rustbot` modify labels: rollup
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Sep 26, 2024
…,fee1-dead
Fix the misleading diagnostic for `let_underscore_drop` on type without `Drop` implementation
Closes: rust-lang#130430
r? rust-lang/diagnostics
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 26, 2024
…iaskrgr
Rollup of 10 pull requests
Successful merges:
- rust-lang#129687 (Implement RFC3137 trim-paths sysroot changes - take 2)
- rust-lang#130517 (Add the library workspace to the suggested rust-analyzer config)
- rust-lang#130820 (Fix diagnostics for coroutines with () as input.)
- rust-lang#130833 (Fix the misleading diagnostic for `let_underscore_drop` on type without `Drop` implementation)
- rust-lang#130845 (Utf8Chunks: add link to Utf8Chunk)
- rust-lang#130850 (Pass Module Analysis Manager to Standard Instrumentations)
- rust-lang#130868 (Update FIXME comment in s390x_unknown_linux_*.rs)
- rust-lang#130873 (rustc_target: Add powerpc64 atomic-related features)
- rust-lang#130879 (Pass correct HirId to late_bound_vars in diagnostic code)
- rust-lang#130880 (add missing FIXME(const-hack))
r? `@ghost`
`@rustbot` modify labels: rollup
workingjubilee added a commit to workingjubilee/rustc that referenced this pull request Sep 26, 2024
…,fee1-dead
Fix the misleading diagnostic for `let_underscore_drop` on type without `Drop` implementation
Closes: rust-lang#130430
r? rust-lang/diagnostics
tgross35 added a commit to tgross35/rust that referenced this pull request Sep 26, 2024
…,fee1-dead
Fix the misleading diagnostic for `let_underscore_drop` on type without `Drop` implementation
Closes: rust-lang#130430
r? rust-lang/diagnostics
@tgross35tgross35 mentioned this pull request Sep 26, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 26, 2024
…llaumeGomez
Rollup of 11 pull requests
Successful merges:
- rust-lang#130279 (Document subtleties of `ManuallyDrop`)
- rust-lang#130517 (Add the library workspace to the suggested rust-analyzer config)
- rust-lang#130820 (Fix diagnostics for coroutines with () as input.)
- rust-lang#130833 (Fix the misleading diagnostic for `let_underscore_drop` on type without `Drop` implementation)
- rust-lang#130845 (Utf8Chunks: add link to Utf8Chunk)
- rust-lang#130850 (Pass Module Analysis Manager to Standard Instrumentations)
- rust-lang#130861 (Use `mem::offset_of!` for `sockaddr_un.sun_path`)
- rust-lang#130862 (rustdoc: do not animate :target when user prefers reduced motion)
- rust-lang#130868 (Update FIXME comment in s390x_unknown_linux_*.rs)
- rust-lang#130879 (Pass correct HirId to late_bound_vars in diagnostic code)
- rust-lang#130880 (add missing FIXME(const-hack))
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit d3cb1ce into rust-lang:masterSep 27, 2024
@rustbotrustbot added this to the 1.83.0 milestone Sep 27, 2024
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Sep 27, 2024
Rollup merge of rust-lang#130833 - makai410:master, r=compiler-errors,fee1-dead
Fix the misleading diagnostic for `let_underscore_drop` on type without `Drop` implementation
Closes: rust-lang#130430
r? rust-lang/diagnostics
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect let_underscore_drop warning on type without Drop implementation

6 participants

@makai410@rustbot@fee1-dead@bors@compiler-errors@chenyukang