Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

librustc: Terminate name searches at the nearest module scope for paths ... #4226

Closed

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
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