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:
bors 2024-03-04 16:16:46 +00:00
commit 1cb39050bf

View File

@ -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.