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
This commit is contained in:
commit
1cb39050bf
@ -3981,6 +3981,7 @@ declare_clippy_lint! {
|
||||
}
|
||||
|
||||
declare_clippy_lint! {
|
||||
/// ### What it does
|
||||
/// Checks for the manual creation of C strings (a string with a `NUL` byte at the end), either
|
||||
/// through one of the `CStr` constructor functions, or more plainly by calling `.as_ptr()`
|
||||
/// on a (byte) string literal with a hardcoded `\0` byte at the end.
|
||||
|
Loading…
x
Reference in New Issue
Block a user