File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -79,9 +79,9 @@ use crate::str;
79
79
///
80
80
/// [str]: prim@str "str"
81
81
#[ derive( Hash ) ]
82
- #[ cfg_attr( not( test) , rustc_diagnostic_item = "CStr" ) ]
83
82
#[ stable( feature = "core_c_str" , since = "1.64.0" ) ]
84
83
#[ rustc_has_incoherent_inherent_impls]
84
+ #[ cfg_attr( not( bootstrap) , lang = "CStr" ) ]
85
85
// FIXME:
86
86
// `fn from` in `impl From<&CStr> for Box<CStr>` current implementation relies
87
87
// on `CStr` being layout-compatible with `[u8]`.
Original file line number Diff line number Diff line change @@ -337,6 +337,8 @@ pub enum LitKind {
337
337
StrRaw ( u8 ) ,
338
338
ByteStr ,
339
339
ByteStrRaw ( u8 ) ,
340
+ CStr ,
341
+ CStrRaw ( u8 ) ,
340
342
Err ,
341
343
}
342
344
@@ -350,6 +352,8 @@ rpc_encode_decode!(
350
352
StrRaw ( n) ,
351
353
ByteStr ,
352
354
ByteStrRaw ( n) ,
355
+ CStr ,
356
+ CStrRaw ( n) ,
353
357
Err ,
354
358
}
355
359
) ;
You can’t perform that action at this time.
0 commit comments