Skip to content

fix: add continue#152316

Open
cuiweixie wants to merge 1 commit intorust-lang:mainfrom
cuiweixie:bugfix-continue
Open

fix: add continue#152316
cuiweixie wants to merge 1 commit intorust-lang:mainfrom
cuiweixie:bugfix-continue

Conversation

@cuiweixie
Copy link
Contributor

@cuiweixie cuiweixie commented Feb 8, 2026

should be same in:

if fn_return.span.desugaring_kind().is_some() {
// Skip `async` desugaring `impl Future`.
continue;
}

@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 Feb 8, 2026
@rustbot
Copy link
Collaborator

rustbot commented Feb 8, 2026

r? @JonathanBrouwer

rustbot has assigned @JonathanBrouwer.
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: borrowck, compiler
  • borrowck, compiler expanded to 22 candidates
  • Random selection from 13 candidates

@JonathanBrouwer
Copy link
Contributor

Hi there, thanks for your contribution!

Could you explain what bug this is fixing, and if possible, add a regression test?

@cuiweixie
Copy link
Contributor Author

cuiweixie commented Feb 8, 2026

Hi there, thanks for your contribution!

Could you explain what bug this is fixing, and if possible, add a regression test?

I think add this continue statement is reasonable, same as in

if fn_return.span.desugaring_kind().is_some() {
// Skip `async` desugaring `impl Future`.
continue;
}

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.

3 participants