From f43c86cda46a423b947be427a5fea2614ca569dc Mon Sep 17 00:00:00 2001 From: kwantam Date: Tue, 21 Apr 2015 15:24:50 -0400 Subject: [PATCH] unstabilize Words struct Words struct was stabilied by mistake. Unstabilize. --- src/libcollections/lib.rs | 1 + src/librustc_unicode/u_str.rs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libcollections/lib.rs b/src/libcollections/lib.rs index 9a35ac1f698..0ea8975bbde 100644 --- a/src/libcollections/lib.rs +++ b/src/libcollections/lib.rs @@ -38,6 +38,7 @@ #![feature(unsafe_no_drop_flag, filling_drop)] #![feature(step_by)] #![feature(str_char)] +#![feature(str_words)] #![feature(slice_patterns)] #![feature(debug_builders)] #![feature(utf8_error)] diff --git a/src/librustc_unicode/u_str.rs b/src/librustc_unicode/u_str.rs index c63c586b6a9..097776312df 100644 --- a/src/librustc_unicode/u_str.rs +++ b/src/librustc_unicode/u_str.rs @@ -26,7 +26,8 @@ use core::str::Split; use tables::grapheme::GraphemeCat; /// An iterator over the words of a string, separated by a sequence of whitespace -#[stable(feature = "rust1", since = "1.0.0")] +#[unstable(feature = "str_words", + reason = "words() will be replaced by split_whitespace() in 1.1.0")] pub struct Words<'a> { inner: Filter bool>, fn(&&str) -> bool>, }