Skip to content

Commit

Permalink
Stop using [T]::tail.
Browse files Browse the repository at this point in the history
It has been removed upstream (rust-lang/rust#27684).
  • Loading branch information
Ms2ger committed Aug 16, 2015
1 parent 5ab9aa5 commit a3bc438
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions 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 a3bc438

Please sign in to comment.