diff options
| author | bors <bors@rust-lang.org> | 2022-11-18 09:31:20 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-11-18 09:31:20 +0000 |
| commit | 1c9c34de17dde504447accd457afd0ba0da6a06f (patch) | |
| tree | d521c25cf2c1116a60444985820ebb609dfb5043 /src/test/rustdoc-ui/coverage/enum-tuple.rs | |
| parent | dac600e32fce89cb4b05ae6edb0c47982b99eb48 (diff) | |
| parent | bc3cd344a1edefdea8eef7962d75bb35cdeea880 (diff) | |
| download | rust-1c9c34de17dde504447accd457afd0ba0da6a06f.tar.gz rust-1c9c34de17dde504447accd457afd0ba0da6a06f.zip | |
Auto merge of #9858 - DesmondWillowbrook:never_loop, r=dswij
`never_loop`: don't emit AlwaysBreaks if it targets a block ref: https://github.com/rust-lang/rust-clippy/pull/9837#issuecomment-1312788194 The previous fix (#9837) was too simple and ignored all break commands inside a labelled block, regardless of whether their destination was a labelled block or a loop. This fix tracks all the labelled blocks in scope to ensure that only breaks targeting loops are considered. changelog: [`never_loop`]: prevent false negatives from `breaks` nested in labelled blocks
Diffstat (limited to 'src/test/rustdoc-ui/coverage/enum-tuple.rs')
0 files changed, 0 insertions, 0 deletions
