Skip to content

Commit

Permalink
servo: Merge #7240 - Stop using [T]::tail (from Ms2ger:slice_extras);…
Browse files Browse the repository at this point in the history
… r=nox

It has been removed upstream (rust-lang/rust#27684).

Source-Repo: https://github.com/servo/servo
Source-Revision: 4d7dd66ec9f0a5229a52b3301ac1a38848ebfb4b
  • Loading branch information
Ms2ger committed Aug 16, 2015
1 parent dd87a48 commit 673e722
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions servo/tests/reftest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#![feature(exit_status)]
#![feature(fs_walk)]
#![feature(path_ext)]
#![feature(slice_extras)]
#![feature(slice_patterns)]
#![feature(test)]

Expand Down Expand Up @@ -44,7 +43,7 @@ bitflags!(

fn main() {
let args: Vec<String> = 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(); // .split() is never empty
let servo_args = parts.next().unwrap_or(&[]);
Expand Down

0 comments on commit 673e722

Please sign in to comment.