Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Infer return type for async function in generate_function #15012

Merged
merged 1 commit into from Jun 9, 2023

Conversation

lowr
Copy link
Contributor

@lowr lowr commented Jun 8, 2023

Part of #10122

In generate_function assist, when we infer the return type of async function we're generating, we should retrieve the type of parent await expression rather than the call expression itself.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 8, 2023
@lowr lowr force-pushed the patch/generate-fn-async-ret-ty branch from 7d2ed13 to 32768fe Compare June 8, 2023 15:33
@HKalbasi
Copy link
Member

HKalbasi commented Jun 9, 2023

@bors r+

@bors
Copy link
Collaborator

bors commented Jun 9, 2023

📌 Commit 32768fe has been approved by HKalbasi

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Jun 9, 2023

⌛ Testing commit 32768fe with merge 9973b11...

@bors
Copy link
Collaborator

bors commented Jun 9, 2023

☀️ Test successful - checks-actions
Approved by: HKalbasi
Pushing 9973b11 to master...

@bors bors merged commit 9973b11 into rust-lang:master Jun 9, 2023
10 checks passed
@lnicola lnicola changed the title Infer return type for async function in generate_function fix: Infer return type for async function in generate_function Jun 9, 2023
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants