Skip to content

Conversation

@pcwalton
Copy link
Contributor

...that contain at least two components

r? @graydon

@graydon
Copy link
Contributor

graydon commented Dec 19, 2012

r+

@pcwalton pcwalton closed this Jan 7, 2013
oli-obk pushed a commit to oli-obk/rust that referenced this pull request May 2, 2020
Fixes rust-lang#4226

This introduces the lint await_holding_lock. For async functions, we iterate
over all types in generator_interior_types and look for types named MutexGuard,
RwLockReadGuard, or RwLockWriteGuard. If we find one then we emit a lint.
oli-obk pushed a commit to oli-obk/rust that referenced this pull request May 2, 2020
Lint for holding locks across await points

Fixes rust-lang#4226

This introduces the lint await_holding_lock. For async functions, we iterate
over all types in generator_interior_types and look for types named MutexGuard,
RwLockReadGuard, or RwLockWriteGuard. If we find one then we emit a lint.

changelog: introduce the await_holding_lock lint
RalfJung pushed a commit to RalfJung/rust that referenced this pull request Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants