From f94a94227cad840e45b11f5a537748b626737c6c Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Thu, 25 Jan 2024 18:11:54 -0800 Subject: [PATCH] Export core::str::from_raw_parts{,_mut} into alloc::str and std::str --- library/alloc/src/str.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/alloc/src/str.rs b/library/alloc/src/str.rs index 38f9f39fbf89a..ade114678b7f9 100644 --- a/library/alloc/src/str.rs +++ b/library/alloc/src/str.rs @@ -30,6 +30,8 @@ pub use core::str::SplitAsciiWhitespace; pub use core::str::SplitInclusive; #[stable(feature = "rust1", since = "1.0.0")] pub use core::str::SplitWhitespace; +#[unstable(feature = "str_from_raw_parts", issue = "119206")] +pub use core::str::{from_raw_parts, from_raw_parts_mut}; #[stable(feature = "rust1", since = "1.0.0")] pub use core::str::{from_utf8, from_utf8_mut, Bytes, CharIndices, Chars}; #[stable(feature = "rust1", since = "1.0.0")]