Skip to content

Conversation

@pcwalton
Copy link
Contributor

@thestinger
Copy link
Contributor

@pcwalton: sadly already bitrotted :(

@pcwalton pcwalton closed this Jun 26, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jul 15, 2021
… 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](rust-lang#85439
Ready for the review. Please take a look.
fixes rust-lang#7145
changelog: Add new lint: `strlen_on_c_strings`, that lints on `libc::strlen(some_cstring.as_ptr())`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants