about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-01-27 17:27:38 +0000
committerbors <bors@rust-lang.org>2024-01-27 17:27:38 +0000
commit18e1f25a9f503de065fbe5cbc328954e0ae112cd (patch)
tree89d532a9466bf647af5e8e69e17038a47ad256a7 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent85e08cd3b9c97dc8cd7efe6cba2e4015dfa74e28 (diff)
parentff5afac6167f1af9413bc8bc7a95626a91a489f2 (diff)
downloadrust-18e1f25a9f503de065fbe5cbc328954e0ae112cd.tar.gz
rust-18e1f25a9f503de065fbe5cbc328954e0ae112cd.zip
Auto merge of #12206 - y21:issue12205, r=Alexendoo
[`never_loop`]: recognize desugared `try` blocks

Fixes #12205

The old code assumed that only blocks with an explicit label can be jumped to (using `break`). This is mostly correct except for `try` desugaring, where the `?` operator is rewritten to a `break` to that block, even without a label on the block. `Block::targeted_by_break` is a little more accurate than just checking if a block has a label in that regard, so we should just use that instead

changelog: [`never_loop`]: avoid linting when `?` is used inside of a try block
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions