about summary refs log tree commit diff
path: root/src/libcoretest
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-03-21 05:25:21 +0000
committerbors <bors@rust-lang.org>2015-03-21 05:25:21 +0000
commitecf8c64e1b1b60f228f0c472c0b0dab4a5b5aa61 (patch)
tree03752d10ba340b85b8720647c7919a97b21d694b /src/libcoretest
parente2fa53e593a854a609ae9efe5a1bbe15265f0a6f (diff)
parent212e03181e422f569b6426bc08b713a9efc0d0eb (diff)
Auto merge of #23470 - alexcrichton:less-prelude, r=aturon
This commit removes the reexports of `old_io` traits as well as `old_path` types
and traits from the prelude. This functionality is now all deprecated and needs
to be removed to make way for other functionality like `Seek` in the `std::io`
module (currently reexported as `NewSeek` in the io prelude).

Closes #23377
Closes #23378
Diffstat (limited to 'src/libcoretest')
-rw-r--r--src/libcoretest/str.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcoretest/str.rs b/src/libcoretest/str.rs
index a89d3380707..cac78363dd5 100644
--- a/src/libcoretest/str.rs
+++ b/src/libcoretest/str.rs
@@ -35,7 +35,7 @@ fn test_bool_from_str() {
 fn check_contains_all_substrings(s: &str) {
     assert!(s.contains(""));
     for i in 0..s.len() {
-        for j in range(i+1, s.len() + 1) {
+        for j in i+1..s.len() + 1 {
             assert!(s.contains(&s[i..j]));
         }
     }