From 41f5db01399da839d74eda4fae019df752fbb13f Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Mon, 30 Sep 2019 20:50:28 +0000 Subject: [PATCH] servo: Merge #7240 - Stop using [T]::tail (from Ms2ger:slice_extras); r=nox It has been removed upstream (rust-lang/rust#27684). Source-Repo: https://github.com/servo/servo Source-Revision: 4d7dd66ec9f0a5229a52b3301ac1a38848ebfb4b UltraBlame original commit: 4fb4c524dac38483cbe495c72ff641d99b03c0d6 --- servo/tests/reftest.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/servo/tests/reftest.rs b/servo/tests/reftest.rs index ab1535d7eb8e..a8d87bcc7960 100644 --- a/servo/tests/reftest.rs +++ b/servo/tests/reftest.rs @@ -11,7 +11,6 @@ #![feature(exit_status)] #![feature(fs_walk)] #![feature(path_ext)] -#![feature(slice_extras)] #![feature(slice_patterns)] #![feature(test)] @@ -44,7 +43,7 @@ bitflags!( fn main() { let args: Vec = env::args().collect(); - let mut parts = args.tail().split(|e| &**e == "--"); + let mut parts = args[1..].split(|e| &**e == "--"); let harness_args = parts.next().unwrap(); let servo_args = parts.next().unwrap_or(&[]);