Skip to content

Commit 1cb3905

Browse files
committed
Auto merge of #12415 - Veykril:patch-1, r=blyxyas
Add missing header for `manual_c_str_literals` Noticed this while generating our lint completions failed in rust-analyzer changelog: none
2 parents c0939b1 + c5c1477 commit 1cb3905

File tree

1 file changed

+1
-0
lines changed
  • clippy_lints/src/methods

1 file changed

+1
-0
lines changed

clippy_lints/src/methods/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3981,6 +3981,7 @@ declare_clippy_lint! {
39813981
}
39823982

39833983
declare_clippy_lint! {
3984+
/// ### What it does
39843985
/// Checks for the manual creation of C strings (a string with a `NUL` byte at the end), either
39853986
/// through one of the `CStr` constructor functions, or more plainly by calling `.as_ptr()`
39863987
/// on a (byte) string literal with a hardcoded `\0` byte at the end.

0 commit comments

Comments
 (0)