-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Make Option<T> #[must_use] if T is #71368
Copy link
Copy link
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
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
Type
Fields
Give feedbackNo fields configured for issues without a type.
I was recently refactoring some code that originally looked like this (minimized):
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:
This gives no compiler diagnostic and instead the body of foo is not executed.