diff options
| author | Aman Arora <me@aman-arora.com> | 2020-11-15 17:09:51 -0500 |
|---|---|---|
| committer | Aman Arora <me@aman-arora.com> | 2020-11-15 17:09:51 -0500 |
| commit | bb8c5e5d8b4961a26f88b320f719249a9db8225e (patch) | |
| tree | edf2da90649c0da6edafa9980f5a8776ee4165e2 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | c50e57f946ee5a73b50fa5c52bb7a2a8a0cecf3f (diff) | |
| download | rust-bb8c5e5d8b4961a26f88b320f719249a9db8225e.tar.gz rust-bb8c5e5d8b4961a26f88b320f719249a9db8225e.zip | |
Fix case when ExprUseVisitor is called after typeck writeback
Clippy uses `ExprUseVisitor` and atleast in some cases it runs after writeback. We currently don't writeback the min_capture results of closure capture analysis since no place within the compiler itself uses it. In the short term to fix clippy we add a fallback when walking captures of a closure to check if closure_capture analysis has any entries in it. Writeback for closure_min_captures will be implemented in rust-lang/project-rfc-2229#18
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
