We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
CStr
1 parent 25a277f commit d730cc6Copy full SHA for d730cc6
compiler/rustc_span/src/symbol.rs
@@ -131,6 +131,7 @@ symbols! {
131
BinaryHeap,
132
Borrow,
133
C,
134
+ CStr,
135
CString,
136
Center,
137
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