Skip to content

Commit f43c86c

Browse files
committed
unstabilize Words struct
Words struct was stabilied by mistake. Unstabilize.
1 parent 7397bdc commit f43c86c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/libcollections/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
#![feature(unsafe_no_drop_flag, filling_drop)]
3939
#![feature(step_by)]
4040
#![feature(str_char)]
41+
#![feature(str_words)]
4142
#![feature(slice_patterns)]
4243
#![feature(debug_builders)]
4344
#![feature(utf8_error)]

src/librustc_unicode/u_str.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ use core::str::Split;
2626
use tables::grapheme::GraphemeCat;
2727

2828
/// An iterator over the words of a string, separated by a sequence of whitespace
29-
#[stable(feature = "rust1", since = "1.0.0")]
29+
#[unstable(feature = "str_words",
30+
reason = "words() will be replaced by split_whitespace() in 1.1.0")]
3031
pub struct Words<'a> {
3132
inner: Filter<Split<'a, fn(char) -> bool>, fn(&&str) -> bool>,
3233
}

0 commit comments

Comments
 (0)