about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorAndy Weiss <dragonbear@google.com>2020-04-07 21:20:37 -0700
committerAndy Weiss <dragonbear@google.com>2020-04-21 21:07:43 -0700
commit6c25c3c381ccfa0bf9b7bc7386a09cc4421fd790 (patch)
tree091199d964f148334f4460744a597cd2a7047625 /src/test/codegen/src-hash-algorithm
parentb3cb9b8376b79837ec525da017871ab1859292dc (diff)
downloadrust-6c25c3c381ccfa0bf9b7bc7386a09cc4421fd790.tar.gz
rust-6c25c3c381ccfa0bf9b7bc7386a09cc4421fd790.zip
Lint for holding locks across await points
Fixes #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.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions