rust/compiler/rustc_span
Flying-Toast b335ec9ec8 Add a special case for CStr/CString in the improper_ctypes lint
Instead of saying to "consider adding a `#[repr(C)]` or
`#[repr(transparent)]` attribute to this struct", we now tell users to
"Use `*const ffi::c_char` instead, and pass the value from
`CStr::as_ptr()`" when the type involved is a `CStr` or a `CString`.

Co-authored-by: Jieyou Xu <jieyouxu@outlook.com>
2024-08-06 13:56:59 +00:00
..
src Add a special case for CStr/CString in the improper_ctypes lint 2024-08-06 13:56:59 +00:00
Cargo.toml rustc_span: derivative -> derive-where 2024-07-12 21:37:43 +03:00