diff options
| author | bors <bors@rust-lang.org> | 2023-06-12 04:18:50 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-06-12 04:18:50 +0000 |
| commit | 21e6235b4cbec68645ebf0ec3e113ed56ce57de4 (patch) | |
| tree | 97f3ef7f169a1b82da6adb0c82825343865af9c8 /compiler/rustc_mir_transform/src/coverage/debug.rs | |
| parent | edaf7401e47ce3712e7ef435f62711645f83caf9 (diff) | |
| parent | 108c04acf0bdb90e68ec7c12e86c5fbb21548061 (diff) | |
| download | rust-21e6235b4cbec68645ebf0ec3e113ed56ce57de4.tar.gz rust-21e6235b4cbec68645ebf0ec3e113ed56ce57de4.zip | |
Auto merge of #10921 - Centri3:needless_if, r=blyxyas,Manishearth
Add `needless_if` lint first off: Sorry about the large diff. Seems a ton of tests do this (understandably so). this is basically everything I wanted in #10868, while it doesn't lint *all* unnecessary empty blocks, it lints needless if statements; which are basically the crux of the issue (for me) anyway. I've committed code that includes this far too many times :sweat_smile: hopefully clippy can help me out soon closes #10868 changelog: New lint [`needless_if`]
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions
