about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-07-05 13:12:43 +0000
committerbors <bors@rust-lang.org>2021-07-05 13:12:43 +0000
commit64d74df19c582a10ad41ddce496528e597b06765 (patch)
treea5a8c1ebd92f7ce1139ed1ca2db80c8fa8cf49a6 /src/test/codegen/src-hash-algorithm
parent3cc67785121c57d285987770bec9a49471639d18 (diff)
parent59a164e86c41b4ccfa1e41ec60d7bb8a0f2c87d2 (diff)
downloadrust-64d74df19c582a10ad41ddce496528e597b06765.tar.gz
rust-64d74df19c582a10ad41ddce496528e597b06765.zip
Auto merge of #7243 - mgacek8:issue7145_strlen_on_c_strings, r=giraffate
Add new lint: `strlen_on_c_strings`

~~This is WIP, linting in case of `CString` has been added, but for `CStr`, its diagnostic item needs to be available for clippy.
[PR that adds diagnostic item for CStr on rust repo](https://github.com/rust-lang/rust/pull/85439).~~
Ready for the review. Please take a look.
fixes #7145
changelog: Add new lint: `strlen_on_c_strings`, that lints on `libc::strlen(some_cstring.as_ptr())`
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions