diff options
author | Deadbeef <ent3rm4n@gmail.com> | 2023-03-05 15:03:22 +0000 |
---|---|---|
committer | Deadbeef <ent3rm4n@gmail.com> | 2023-05-02 10:30:09 +0000 |
commit | 8ff3903643b530c9029e8f2c6c6956fda8f21d77 (patch) | |
tree | e424bc1501abc62c70ad0c622777a0c6cb4cd0e1 /library | |
parent | 7b99493492ad59c7a44c65373558175db42b4151 (diff) | |
download | rust-8ff3903643b530c9029e8f2c6c6956fda8f21d77.tar.gz |
initial step towards implementing C string literals
Diffstat (limited to 'library')
-rw-r--r-- | library/core/src/ffi/c_str.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/ffi/c_str.rs b/library/core/src/ffi/c_str.rs index bd2b2c36c43..2ac679b6bc3 100644 --- a/library/core/src/ffi/c_str.rs +++ b/library/core/src/ffi/c_str.rs @@ -82,6 +82,7 @@ use crate::str; #[cfg_attr(not(test), rustc_diagnostic_item = "CStr")] #[stable(feature = "core_c_str", since = "1.64.0")] #[rustc_has_incoherent_inherent_impls] +#[cfg_attr(not(bootstrap), lang = "CStr")] // FIXME: // `fn from` in `impl From<&CStr> for Box<CStr>` current implementation relies // on `CStr` being layout-compatible with `[u8]`. |