Skip to content

Conversation

@Jarcho
Copy link
Contributor

@Jarcho Jarcho commented Nov 20, 2021

fixes: #7436

changelog: lint strlen_on_c_string when used without a fully-qualified path
changelog: suggest removing the surrounding unsafe block for strlen_on_c_string when possible

@rust-highfive
Copy link

r? @giraffate

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Nov 20, 2021
Copy link
Contributor

@giraffate giraffate left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good. Can you address the failed tests?

@giraffate
Copy link
Contributor

@bors r+

Thanks!

@bors
Copy link
Contributor

bors commented Nov 29, 2021

📌 Commit a135347 has been approved by giraffate

@bors
Copy link
Contributor

bors commented Nov 29, 2021

⌛ Testing commit a135347 with merge 908815c...

@bors
Copy link
Contributor

bors commented Nov 29, 2021

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: giraffate
Pushing 908815c to master...

@bors bors merged commit 908815c into rust-lang:master Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties

Projects

None yet

Development

Successfully merging this pull request may close these issues.

strlen_on_c_strings lint to remove unsafe block in suggestion if it has only libc::strlen(cstr.as_ptr()) inside of it

4 participants