about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-03-31 10:15:35 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-03-31 15:49:11 -0700
commit6d2c640cf00aad6345bd93b0b64c8b3d3d2fcf50 (patch)
treebd5aad8208dbc01ab2834d2a1e0444444ce18959 /src/test
parent5e0bda0448283c3045c1e96b99e90ebbc3746e12 (diff)
parentdf65f59fe9dd856c96a383c01067a176fee0dbb6 (diff)
downloadrust-6d2c640cf00aad6345bd93b0b64c8b3d3d2fcf50.tar.gz
rust-6d2c640cf00aad6345bd93b0b64c8b3d3d2fcf50.zip
rollup merge of #23886: demelev/remove_as_slice_usage
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-pass-fulldeps/compiler-calls.rs2
-rw-r--r--src/test/run-pass/regions-refcell.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/run-pass-fulldeps/compiler-calls.rs b/src/test/run-pass-fulldeps/compiler-calls.rs
index 7a3c32a45f9..fdc670c6b71 100644
--- a/src/test/run-pass-fulldeps/compiler-calls.rs
+++ b/src/test/run-pass-fulldeps/compiler-calls.rs
@@ -77,6 +77,6 @@ fn main() {
     let mut tc = TestCalls { count: 1 };
     // we should never get use this filename, but lets make sure they are valid args.
     let args = vec!["compiler-calls".to_string(), "foo.rs".to_string()];
-    rustc_driver::run_compiler(args.as_slice(), &mut tc);
+    rustc_driver::run_compiler(&args[..], &mut tc);
     assert!(tc.count == 30);
 }
diff --git a/src/test/run-pass/regions-refcell.rs b/src/test/run-pass/regions-refcell.rs
index febf5f92ef6..63525b36206 100644
--- a/src/test/run-pass/regions-refcell.rs
+++ b/src/test/run-pass/regions-refcell.rs
@@ -29,7 +29,7 @@ fn foo<'a>(map: RefCell<HashMap<&'static str, &'a [u8]>>) {
 // supposed to match the lifetime `'a`) ...
 fn foo<'a>(map: RefCell<HashMap<&'static str, &'a [u8]>>) {
     let one = [1];
-    assert_eq!(map.borrow().get("one"), Some(&one.as_slice()));
+    assert_eq!(map.borrow().get("one"), Some(&&one[..]));
 }
 
 #[cfg(all(not(cannot_use_this_yet),not(cannot_use_this_yet_either)))]