Skip to content

Fix E0040 suggestion for explicit Drop::drop UFCS calls#156103

Open
Unique-Usman wants to merge 1 commit intorust-lang:mainfrom
Unique-Usman:ua/fixe0040
Open

Fix E0040 suggestion for explicit Drop::drop UFCS calls#156103
Unique-Usman wants to merge 1 commit intorust-lang:mainfrom
Unique-Usman:ua/fixe0040

Conversation

@Unique-Usman
Copy link
Copy Markdown
Contributor

@Unique-Usman Unique-Usman commented May 3, 2026

Drop::drop(&mut f) now correctly suggests drop(f) instead of the bare drop with no argument.

Fix: #156017

`Drop::drop(&mut f)` now correctly suggests `drop(f)` instead of
the bare `drop` with no argument.

Signed-off-by: Usman Akinyemi <usmanakinyemi202@gmail.com>
@rustbot rustbot 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 May 3, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 3, 2026

r? @chenyukang

rustbot has assigned @chenyukang.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: compiler
  • compiler expanded to 73 candidates
  • Random selection from 22 candidates

@Unique-Usman
Copy link
Copy Markdown
Contributor Author

r? @mejrs

@rustbot rustbot assigned mejrs and unassigned chenyukang May 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect fix for E0040 on qualified method call

4 participants