about summary refs log tree commit diff
path: root/src/test/run-make/unicode-input
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-01-29 05:47:21 +0000
committerbors <bors@rust-lang.org>2015-01-29 05:47:21 +0000
commitbedd8108dc9b79402d1ea5349d766275f73398ff (patch)
tree33580f180481d78ead16c7a8d3af4513968f4007 /src/test/run-make/unicode-input
parentc5961ad06d45689b44ff305c15d6ec7ec65755a9 (diff)
parentbce81e24647507c82e02e9918f54e8e3a2431149 (diff)
downloadrust-bedd8108dc9b79402d1ea5349d766275f73398ff.tar.gz
rust-bedd8108dc9b79402d1ea5349d766275f73398ff.zip
Auto merge of #21680 - japaric:slice, r=alexcrichton
Replaces `slice_*` method calls with slicing syntax, and removes `as_slice()` calls that are redundant due to `Deref`.
Diffstat (limited to 'src/test/run-make/unicode-input')
-rw-r--r--src/test/run-make/unicode-input/multiple_files.rs2
-rw-r--r--src/test/run-make/unicode-input/span_length.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/run-make/unicode-input/multiple_files.rs b/src/test/run-make/unicode-input/multiple_files.rs
index eda89f2344b..e57f026889f 100644
--- a/src/test/run-make/unicode-input/multiple_files.rs
+++ b/src/test/run-make/unicode-input/multiple_files.rs
@@ -65,6 +65,6 @@ fn main() {
 
         // positive test so that this test will be updated when the
         // compiler changes.
-        assert!(err.as_slice().contains("expected item, found"))
+        assert!(err.contains("expected item, found"))
     }
 }
diff --git a/src/test/run-make/unicode-input/span_length.rs b/src/test/run-make/unicode-input/span_length.rs
index d387b9d71e3..28b993ba69b 100644
--- a/src/test/run-make/unicode-input/span_length.rs
+++ b/src/test/run-make/unicode-input/span_length.rs
@@ -63,6 +63,6 @@ fn main() {
         // the span should end the line (e.g no extra ~'s)
         let expected_span = format!("^{}\n", repeat("~").take(n - 1)
                                                         .collect::<String>());
-        assert!(err.as_slice().contains(expected_span.as_slice()));
+        assert!(err.contains(expected_span.as_slice()));
     }
 }