mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
Rollup merge of #85439 - mgacek8:add_diagnostic_item_to_CStr_type, r=davidtwco
Add diagnostic item to `CStr` Required for clippy issue: https://github.com/rust-lang/rust-clippy/issues/7145
This commit is contained in:
commit
1207b7fa0b
@ -132,6 +132,7 @@ symbols! {
|
||||
Borrow,
|
||||
Break,
|
||||
C,
|
||||
CStr,
|
||||
CString,
|
||||
Center,
|
||||
Clone,
|
||||
|
@ -185,6 +185,7 @@ pub struct CString {
|
||||
///
|
||||
/// [`&str`]: prim@str
|
||||
#[derive(Hash)]
|
||||
#[cfg_attr(not(test), rustc_diagnostic_item = "CStr")]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
// FIXME:
|
||||
// `fn from` in `impl From<&CStr> for Box<CStr>` current implementation relies
|
||||
|
Loading…
Reference in New Issue
Block a user