From c361e13d7155552cb6e45da5016cea36f87ecfec Mon Sep 17 00:00:00 2001 From: kwantam Date: Sat, 18 Apr 2015 13:49:51 -0400 Subject: implement rfc 1054: split_whitespace() fn, deprecate words() For now, words() is left in (but deprecated), and Words is a type alias for struct SplitWhitespace. Also cleaned up references to s.words() throughout codebase. Closes #15628 --- src/test/run-pass/drop-with-type-ascription-1.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/test') diff --git a/src/test/run-pass/drop-with-type-ascription-1.rs b/src/test/run-pass/drop-with-type-ascription-1.rs index 9dd458344cb..15f229dbca5 100644 --- a/src/test/run-pass/drop-with-type-ascription-1.rs +++ b/src/test/run-pass/drop-with-type-ascription-1.rs @@ -9,11 +9,9 @@ // except according to those terms. -#![feature(str_words)] - fn main() { let foo = "hello".to_string(); - let foo: Vec<&str> = foo.words().collect(); + let foo: Vec<&str> = foo.split_whitespace().collect(); let invalid_string = &foo[0]; assert_eq!(*invalid_string, "hello"); } -- cgit 1.4.1-3-g733a5