about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-abort.diff
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 /tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-abort.diff
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 'tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-abort.diff')
0 files changed, 0 insertions, 0 deletions