about summary refs log tree commit diff
path: root/library/std/src/prelude
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2022-02-16 19:23:37 +0800
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2022-04-14 21:53:11 +0300
commit5bee741a08a267f68ac6c3d24dadfe927bd45008 (patch)
tree405bb0b23d2fea185c8ef2cfea2a387284c1ba7d /library/std/src/prelude
parente7575f9670f3c837def3d186ae09366c75c7632e (diff)
downloadrust-5bee741a08a267f68ac6c3d24dadfe927bd45008.tar.gz
rust-5bee741a08a267f68ac6c3d24dadfe927bd45008.zip
library: Move `CStr` to libcore, and `CString` to liballoc
Diffstat (limited to 'library/std/src/prelude')
-rw-r--r--library/std/src/prelude/v1.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/library/std/src/prelude/v1.rs b/library/std/src/prelude/v1.rs
index 0226c4d7a25..f7533696df4 100644
--- a/library/std/src/prelude/v1.rs
+++ b/library/std/src/prelude/v1.rs
@@ -95,3 +95,7 @@ pub use crate::string::{String, ToString};
 #[stable(feature = "rust1", since = "1.0.0")]
 #[doc(no_inline)]
 pub use crate::vec::Vec;
+
+#[cfg(bootstrap)]
+#[unstable(feature = "cstr_internals", issue = "none")]
+pub use alloc::ffi::CStrExt;