about summary refs log tree commit diff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2021-03-23 11:57:03 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2021-03-23 11:57:03 +0000
commit52dc0718c0906cb46a782c8e1d3075544d579c6f (patch)
treea361d0ca864fe0901a3e542c458c9a82ecf04c51
parent9b6339e4b9747d473270baa42e77e1d2fff39bf4 (diff)
Expose str::SplitInclusive in alloc and therefore in std
This seems to have been omitted from the beginning when this feature
was first introduced in 86bf96291d82.

Most users won't need to name this type which is probably why this
wasn't noticed in the meantime.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rw-r--r--library/alloc/src/str.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/alloc/src/str.rs b/library/alloc/src/str.rs
index 8c64bc08012..f2edd59f9ba 100644
--- a/library/alloc/src/str.rs
+++ b/library/alloc/src/str.rs
@@ -46,6 +46,8 @@ pub use core::str::pattern;
 pub use core::str::EncodeUtf16;
 #[stable(feature = "split_ascii_whitespace", since = "1.34.0")]
 pub use core::str::SplitAsciiWhitespace;
+#[stable(feature = "split_inclusive", since = "1.51.0")]
+pub use core::str::SplitInclusive;
 #[stable(feature = "rust1", since = "1.0.0")]
 pub use core::str::SplitWhitespace;
 #[stable(feature = "rust1", since = "1.0.0")]