about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/Linker.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-10-25 08:54:27 +0000
committerbors <bors@rust-lang.org>2020-10-25 08:54:27 +0000
commita675778cfb3623a5b4c0b04946ef9ada2a1b5b07 (patch)
tree2a594e36ce0565c071f6245424798410d6089764 /compiler/rustc_llvm/llvm-wrapper/Linker.cpp
parentb06856eae0fade6e2eaaaad7ab289069ddb6f037 (diff)
parent4d3322525d9b65ce4c6fc183bc1cd3cfc9477300 (diff)
downloadrust-a675778cfb3623a5b4c0b04946ef9ada2a1b5b07.tar.gz
rust-a675778cfb3623a5b4c0b04946ef9ada2a1b5b07.zip
Auto merge of #6029 - Daniel-B-Smith:refcell_ref_await, r=flip1995
Add lint for holding RefCell Ref across an await

Fixes #6008

This introduces the lint await_holding_refcell_ref. For async functions, we iterate
over all types in generator_interior_types and look for `core::cell::Ref` or `core::cell::RefMut`. If we find one then we emit a lint.

Heavily cribs from: https://github.com/rust-lang/rust-clippy/pull/5439

changelog: introduce the await_holding_refcell_ref lint
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/Linker.cpp')
0 files changed, 0 insertions, 0 deletions