diff options
| author | bors <bors@rust-lang.org> | 2021-12-09 17:40:32 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-12-09 17:40:32 +0000 |
| commit | 4a4f0923aba9a30c470b3a3d958d546bbc793ed5 (patch) | |
| tree | 7b2045c555d2238bd9e051ba943100a3736e72e6 /compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs | |
| parent | 5abecad00924f996c5a81ea0bc040609ac4b76c6 (diff) | |
| parent | e42f79c0a3eb64deb5445968a0bb7106df489ed2 (diff) | |
| download | rust-4a4f0923aba9a30c470b3a3d958d546bbc793ed5.tar.gz rust-4a4f0923aba9a30c470b3a3d958d546bbc793ed5.zip | |
Auto merge of #8096 - xFrednet:0000-remove-lintcheck-log-file, r=matthiaskrgr
Remove lintcheck log and add `--filter` option to lintcheck This PR removes the really outdated lintcheck log from this repo and adds a new `--filter` option to force warnings of a lint. This also ignores `allow` attributes. I believe that this is a good thing, as we'll see if suppressed false positives are also fixed by the changes. --- #### Example: ```sh $ cargo lintcheck --filter identity_op ``` #### Output ``` clippy 0.1.59 (460bef22a 2021-12-08) [..]/cargo-0.49.0/src/cargo/core/compiler/fingerprint.rs:1910:17 clippy::identity_op "the operation is ineffective. Consider reducing it to `(ret[0] as usize)`" [..]/cargo-0.49.0/src/cargo/util/hex.rs:8:9 clippy::identity_op "the operation is ineffective. Consider reducing it to `num`" [..]/libc-0.2.81/src/unix/linux_like/linux/mod.rs:2654:18 clippy::identity_op "the operation is ineffective. Consider reducing it to `(dev & 0x00000000000000ff)`" [..]/libc-0.2.81/src/unix/linux_like/linux/mod.rs:2665:16 clippy::identity_op "the operation is ineffective. Consider reducing it to `(minor & 0x000000ff)`" [..]/libc-0.2.81/src/unix/linux_like/mod.rs:1218:27 clippy::identity_op "the operation is ineffective. Consider reducing it to `IPOPT_CONTROL`" [..]/rayon-1.5.0/src/slice/quicksort.rs:588:17 clippy::identity_op "the operation is ineffective. Consider reducing it to `len / 4`" [..]/regex-1.3.2/src/dfa.rs:1380:14 clippy::identity_op "the operation is ineffective. Consider reducing it to `(empty_flags.start as u8)`" Stats: clippy::identity_op 7 ICEs: ``` Two of these lints are suppressed when lintcheck runs normally --- changelog: none r? `@matthiaskrgr` Feel free to reassign if you think that someone else would be a better reviewer :upside_down_face:
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs')
0 files changed, 0 insertions, 0 deletions
