Skip to content

Commit c59d45b

Browse files
committed
initial step towards implementing C string literals
1 parent c18ac5c commit c59d45b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/ffi/c_str.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ use crate::str;
8282
#[cfg_attr(not(test), rustc_diagnostic_item = "CStr")]
8383
#[stable(feature = "core_c_str", since = "1.64.0")]
8484
#[rustc_has_incoherent_inherent_impls]
85+
#[cfg_attr(not(bootstrap), lang = "CStr")]
8586
// FIXME:
8687
// `fn from` in `impl From<&CStr> for Box<CStr>` current implementation relies
8788
// on `CStr` being layout-compatible with `[u8]`.

0 commit comments

Comments
 (0)