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;
7979///
8080/// [str]: prim@str "str"
8181#[ derive( Hash ) ]
82- #[ cfg_attr( not( test) , rustc_diagnostic_item = "CStr" ) ]
8382#[ stable( feature = "core_c_str" , since = "1.64.0" ) ]
8483#[ rustc_has_incoherent_inherent_impls]
84+ #[ cfg_attr( not( bootstrap) , lang = "CStr" ) ]
8585// FIXME:
8686// `fn from` in `impl From<&CStr> for Box<CStr>` current implementation relies
8787// on `CStr` being layout-compatible with `[u8]`.
Original file line number Diff line number Diff line change @@ -337,6 +337,8 @@ pub enum LitKind {
337337 StrRaw ( u8 ) ,
338338 ByteStr ,
339339 ByteStrRaw ( u8 ) ,
340+ CStr ,
341+ CStrRaw ( u8 ) ,
340342 Err ,
341343}
342344
@@ -350,6 +352,8 @@ rpc_encode_decode!(
350352 StrRaw ( n) ,
351353 ByteStr ,
352354 ByteStrRaw ( n) ,
355+ CStr ,
356+ CStrRaw ( n) ,
353357 Err ,
354358 }
355359) ;
You can’t perform that action at this time.
0 commit comments