Skip to content

Fix wrong suggestion for returning async closure#151194

Open
chenyukang wants to merge 1 commit intorust-lang:mainfrom
chenyukang:yukang-fix-150701-async-closure
Open

Fix wrong suggestion for returning async closure#151194
chenyukang wants to merge 1 commit intorust-lang:mainfrom
chenyukang:yukang-fix-150701-async-closure

Conversation

@chenyukang
Copy link
Member

@chenyukang chenyukang commented Jan 16, 2026

Fixes #150701

r? @estebank

@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 Jan 16, 2026
@SpriteOvO SpriteOvO added A-diagnostics Area: Messages for errors, warnings, and lints A-suggestion-diagnostics Area: Suggestions generated by the compiler applied by `cargo fix` A-async-closures `async || {}` labels Jan 16, 2026
Copy link
Member

@Kivooeo Kivooeo left a comment

Choose a reason for hiding this comment

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

@estebank, is that fine if i reviewed it?

View changes since this review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-async-closures `async || {}` A-diagnostics Area: Messages for errors, warnings, and lints A-suggestion-diagnostics Area: Suggestions generated by the compiler applied by `cargo fix` 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.

Additional suggestion for returning async closure Future is wrong

5 participants