diff options
| author | Clar Charr <clar@charr.xyz> | 2018-05-05 00:33:20 -0400 |
|---|---|---|
| committer | Clar Charr <clar@charr.xyz> | 2018-06-27 17:54:27 -0400 |
| commit | b5cee029a55cd35fcdad52acb294a04ebff1f341 (patch) | |
| tree | 038c8066457355be5193c16c4efe8e9a2bc3af21 /src/liballoc | |
| parent | 23b55161ab4cb6d4bf868ac575bd174ca2de0ffa (diff) | |
| download | rust-b5cee029a55cd35fcdad52acb294a04ebff1f341.tar.gz rust-b5cee029a55cd35fcdad52acb294a04ebff1f341.zip | |
Add str::split_ascii_whitespace.
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/lib.rs | 1 | ||||
| -rw-r--r-- | src/liballoc/str.rs | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/liballoc/lib.rs b/src/liballoc/lib.rs index e25742a4a61..ec9b5eba561 100644 --- a/src/liballoc/lib.rs +++ b/src/liballoc/lib.rs @@ -108,6 +108,7 @@ #![cfg_attr(stage0, feature(repr_transparent))] #![feature(rustc_attrs)] #![feature(specialization)] +#![feature(split_ascii_whitespace)] #![feature(staged_api)] #![feature(str_internals)] #![feature(trusted_len)] diff --git a/src/liballoc/str.rs b/src/liballoc/str.rs index 32ca8d1fa5e..ec9c39c916c 100644 --- a/src/liballoc/str.rs +++ b/src/liballoc/str.rs @@ -78,6 +78,8 @@ pub use core::str::SplitWhitespace; pub use core::str::pattern; #[stable(feature = "encode_utf16", since = "1.8.0")] pub use core::str::EncodeUtf16; +#[unstable(feature = "split_ascii_whitespace", issue = "48656")] +pub use core::str::SplitAsciiWhitespace; #[unstable(feature = "slice_concat_ext", reason = "trait should not have to exist", |
