diff options
| author | bors <bors@rust-lang.org> | 2022-11-25 12:55:24 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-11-25 12:55:24 +0000 |
| commit | efadb55733f1f852e18427376d3c5268139225cd (patch) | |
| tree | 03d2df5e8ac89351ee510744689f12caa17cfd49 /src/test/rustdoc-ui/coverage/enum-tuple.rs | |
| parent | 1a9657139d1beca1d01486ba360fa17c43b9f58f (diff) | |
| parent | f96dd383188e9f24e5b401e664cca97b8bd73825 (diff) | |
| download | rust-efadb55733f1f852e18427376d3c5268139225cd.tar.gz rust-efadb55733f1f852e18427376d3c5268139225cd.zip | |
Auto merge of #9851 - Veykril:unnecessary-safety-comment, r=giraffate
Lint unnecessary safety comments changelog: [`unnecessary_safety_comment`]: Add unnecessary safety comment lint Addresses https://github.com/rust-lang/rust-clippy/issues/7954 This does not necessarily catch all occurences, as doing so would require checking all expressions in the entire source which seems rather expensive. Instead what the lint does is it checks items, statements and the tail expression of blocks for safety comments, then checks if those comments are necessary or not, then linting for the unnecessary ones. I kept the tests in one file to check that the lints do not clash with each other.
Diffstat (limited to 'src/test/rustdoc-ui/coverage/enum-tuple.rs')
0 files changed, 0 insertions, 0 deletions
