diff options
| author | bors <bors@rust-lang.org> | 2024-01-27 17:27:38 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-01-27 17:27:38 +0000 |
| commit | 18e1f25a9f503de065fbe5cbc328954e0ae112cd (patch) | |
| tree | 89d532a9466bf647af5e8e69e17038a47ad256a7 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | 85e08cd3b9c97dc8cd7efe6cba2e4015dfa74e28 (diff) | |
| parent | ff5afac6167f1af9413bc8bc7a95626a91a489f2 (diff) | |
| download | rust-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
