Skip to content

feat(diagnostics): add handler for E0040#22378

Merged
ChayimFriedman2 merged 2 commits into
rust-lang:masterfrom
ada4a:e0040
May 17, 2026
Merged

feat(diagnostics): add handler for E0040#22378
ChayimFriedman2 merged 2 commits into
rust-lang:masterfrom
ada4a:e0040

Conversation

@ada4a
Copy link
Copy Markdown
Contributor

@ada4a ada4a commented May 16, 2026

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 16, 2026
Comment thread crates/ide-diagnostics/src/handlers/explicit_drop_method_use.rs Outdated
@rustbot

This comment has been minimized.

@rustbot

This comment has been minimized.

Comment thread crates/hir-ty/src/infer/path.rs Outdated
Comment thread crates/ide-diagnostics/src/handlers/explicit_drop_method_use.rs Outdated
@rustbot

This comment has been minimized.

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 16, 2026

This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

Comment thread crates/ide-diagnostics/src/handlers/explicit_drop_method_use.rs
Co-authored-by: WaterWhisperer <waterwhisperer24@qq.com>
"#,
// Because of the error, the code isn't analyzed further (?), and so `d` is warned on as unused.
// Arguably a bug in r-a (rustc doesn't emit a warning in this case)
// FIXME: remove this once r-a no longer warns
Copy link
Copy Markdown
Contributor

@ChayimFriedman2 ChayimFriedman2 May 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our borrowck errors (unused stuff, mutability errors) are highly incorrect and have false positives.

View changes since the review

Copy link
Copy Markdown
Contributor

@ChayimFriedman2 ChayimFriedman2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ChayimFriedman2 ChayimFriedman2 added this pull request to the merge queue May 17, 2026
Merged via the queue into rust-lang:master with commit ce81cf6 May 17, 2026
18 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 17, 2026
@ada4a ada4a deleted the e0040 branch May 17, 2026 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants