Add diagnostic item to CStr
This commit is contained in:
parent
25a277f03d
commit
d730cc6646
@ -131,6 +131,7 @@ symbols! {
|
||||
BinaryHeap,
|
||||
Borrow,
|
||||
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…
x
Reference in New Issue
Block a user