From 52dc0718c0906cb46a782c8e1d3075544d579c6f Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 23 Mar 2021 11:57:03 +0000 Subject: [PATCH 1/2] 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 --- 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 8c64bc0801259..f2edd59f9bae6 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")] From 633a66fb66f5c9c433c58f4aa1da85eefe813fa5 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 23 Mar 2021 20:26:19 -0700 Subject: [PATCH 2/2] Bump alloc::str::SplitInclusive to 1.53.0 release --- library/alloc/src/str.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/alloc/src/str.rs b/library/alloc/src/str.rs index f2edd59f9bae6..3730b407972be 100644 --- a/library/alloc/src/str.rs +++ b/library/alloc/src/str.rs @@ -46,7 +46,7 @@ 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")] +#[stable(feature = "split_inclusive", since = "1.53.0")] pub use core::str::SplitInclusive; #[stable(feature = "rust1", since = "1.0.0")] pub use core::str::SplitWhitespace;