Skip to content

Commit 63fddba

Browse files
kwantamalexcrichton
authored andcommitted
unstabilize Words struct
Words struct was stabilied by mistake. Unstabilize.
1 parent 9582c43 commit 63fddba

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/libcollections/lib.rs

Lines changed: 1 addition & 0 deletions
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/libunicode/u_str.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ use core::str::Split;
2828
use tables::grapheme::GraphemeCat;
2929

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

0 commit comments

Comments
 (0)