Skip to content

Commit 82cb98b

Browse files
author
Bhargav Voleti
committed
Fix incorrect heading
1 parent 9b25a4a commit 82cb98b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rfc-drafts/must_not_await_lint.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ When used on a function in a trait implementation, the attribute does nothing.
119119

120120
Going through the prior are we see two systems currently which provide simailar/semantically similar behavior:
121121

122-
## Clippy `#[await_holding_lock]` lint
122+
## Clippy `await_holding_lock` lint
123123
This lint goes through all types in `generator_interior_types` looking for `MutexGuard`, `RwLockReadGuard` and `RwLockWriteGuard`. While this is a first great step, we think that this can be further extended to handle not only the hardcoded lock guards, but any type which is should not be held across an await point. By marking a type as `#[must_not_await]` we can warn when any arbitrary type is being held across an await boundary. An additional benefit to this approach is that this behaviour can be extended to any type which holds a `#[must_not_await]` type inside of it.
124124

125125
## `#[must_use]` attribute

0 commit comments

Comments
 (0)