We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c1c4cd5 + d730cc6 commit 1207b7fCopy full SHA for 1207b7f
compiler/rustc_span/src/symbol.rs
@@ -132,6 +132,7 @@ symbols! {
132
Borrow,
133
Break,
134
C,
135
+ CStr,
136
CString,
137
Center,
138
Clone,
library/std/src/ffi/c_str.rs
@@ -185,6 +185,7 @@ pub struct CString {
185
///
186
/// [`&str`]: prim@str
187
#[derive(Hash)]
188
+#[cfg_attr(not(test), rustc_diagnostic_item = "CStr")]
189
#[stable(feature = "rust1", since = "1.0.0")]
190
// FIXME:
191
// `fn from` in `impl From<&CStr> for Box<CStr>` current implementation relies
0 commit comments