-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
A-async-awaitArea: Async & AwaitArea: Async & AwaitAsyncAwait-TriagedAsync-await issues that have been triaged during a working group meeting.Async-await issues that have been triaged during a working group meeting.P-mediumMedium priorityMedium priorityT-langRelevant to the language teamRelevant to the language team
Description
I was recently refactoring some code that originally looked like this (minimized):
fn foo() {}
async fn bar() {
Some(foo());
}
bar() was far away from the definition of foo().
I had need to refactor the code so that foo was also async, and so now I had:
async fn foo() {}
async fn bar() {
Some(foo());
}
This gives no compiler diagnostic and instead the body of foo is not executed.
Metadata
Metadata
Assignees
Labels
A-async-awaitArea: Async & AwaitArea: Async & AwaitAsyncAwait-TriagedAsync-await issues that have been triaged during a working group meeting.Async-await issues that have been triaged during a working group meeting.P-mediumMedium priorityMedium priorityT-langRelevant to the language teamRelevant to the language team