Open
Description
This is a tracking issue for the RFC 3014 (rust-lang/rfcs#3014).
The feature gate for the issue is #![feature(must_not_await_lint)]
.
Status: This is waiting on more precise generator captures to reduce false positives before stabilizing and turning the lint on by default.
About tracking issues
Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Steps
- Implement the RFC (cc @rust-lang/compiler -- can anyone write up mentoring
instructions?) - Improve generator drop tracking (Dropped variables still included in generator type #57478, Tracking issue for more precise coroutine captures #69663)
- Adjust documentation (see instructions on rustc-dev-guide)
- Stabilization PR (see instructions on rustc-dev-guide)
Unresolved Questions
- Propagate the lint in nested structs/enums. Similar to the use case for the must_use attribute. These likely should be solved together.
- Should the implementation be done with an auto trait, to avoid the need for the hand-written logic for walking types like tuples and arrays. This would also solve the nesting problem above.
- The diagnostics should be improved when the lint triggers on async fn calls that don't obviously store a must_not_suspend type (see https://github.com/rust-lang/rust/blob/08e026675ee38bb4ca81106e766a6456c8b7382e/src/test/ui/lint/must_not_suspend/dedup.rs)
Implementation history
Metadata
Metadata
Assignees
Labels
Area: Async & AwaitArea: Lints (warnings about flaws in source code) such as unused_mut.Async-await issues that have been triaged during a working group meeting.Blocker: Approved by a merged RFC but not yet implemented.Category: An issue tracking the progress of sth. like the implementation of an RFC
Type
Projects
Status
In progress (current sprint)