]> git.lizzy.rs Git - rust.git/commitdiff
unstabilize Words struct
authorkwantam <kwantam@gmail.com>
Tue, 21 Apr 2015 19:24:50 +0000 (15:24 -0400)
committerkwantam <kwantam@gmail.com>
Tue, 21 Apr 2015 19:31:45 +0000 (15:31 -0400)
Words struct was stabilied by mistake. Unstabilize.

src/libcollections/lib.rs
src/librustc_unicode/u_str.rs

index 9a35ac1f6983ecc3480024534a85e9ec25a2e60f..0ea8975bbde1f4b81b447dd09f2454875c30395f 100644 (file)
@@ -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)]
index c63c586b6a90100ab1a8801cb3b7cce6210e8961..097776312df4df58c58a77b57fc9b70592f764a0 100644 (file)
@@ -26,7 +26,8 @@
 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<Split<'a, fn(char) -> bool>, fn(&&str) -> bool>,
 }