about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorkwantam <kwantam@gmail.com>2015-04-18 13:49:51 -0400
committerkwantam <kwantam@gmail.com>2015-04-21 15:31:51 -0400
commitc361e13d7155552cb6e45da5016cea36f87ecfec (patch)
treeeb03f86d7f11029bb49f15e098a55222fa3ea30b /src/test
parentf43c86cda46a423b947be427a5fea2614ca569dc (diff)
downloadrust-c361e13d7155552cb6e45da5016cea36f87ecfec.tar.gz
rust-c361e13d7155552cb6e45da5016cea36f87ecfec.zip
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
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-pass/drop-with-type-ascription-1.rs4
1 files changed, 1 insertions, 3 deletions
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");
 }