mirror of
https://github.com/servo/servo.git
synced 2025-08-16 19:05:33 +01:00
Upgrade to rustc 0.12.0-pre (4d2af3861 2014-09-17 15:51:11 +0000)
This commit is contained in:
parent
8a7eefefd5
commit
a640a7c5c3
74 changed files with 459 additions and 449 deletions
|
@ -9,7 +9,6 @@
|
|||
|
||||
#![deny(unused_imports, unused_variable)]
|
||||
|
||||
extern crate std;
|
||||
extern crate getopts;
|
||||
extern crate regex;
|
||||
extern crate test;
|
||||
|
@ -30,7 +29,7 @@ struct Config {
|
|||
|
||||
fn main() {
|
||||
let args = os::args();
|
||||
let config = parse_config(args.move_iter().collect());
|
||||
let config = parse_config(args.into_iter().collect());
|
||||
let opts = test_options(config.clone());
|
||||
let tests = find_tests(config);
|
||||
match run_tests_console(&opts, tests) {
|
||||
|
@ -111,7 +110,7 @@ fn run_test(file: String) {
|
|||
};
|
||||
let mut output = Vec::new();
|
||||
loop {
|
||||
let byte = prc.stdout.get_mut_ref().read_byte();
|
||||
let byte = prc.stdout.as_mut().unwrap().read_byte();
|
||||
match byte {
|
||||
Ok(byte) => {
|
||||
print!("{}", byte as char);
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
#![deny(unused_imports, unused_variable)]
|
||||
|
||||
extern crate png;
|
||||
extern crate std;
|
||||
extern crate test;
|
||||
extern crate regex;
|
||||
extern crate url;
|
||||
|
@ -19,6 +18,7 @@ use std::ascii::StrAsciiExt;
|
|||
use std::io;
|
||||
use std::io::{File, Reader, Command};
|
||||
use std::io::process::ExitStatus;
|
||||
use std::io::fs::PathExtensions;
|
||||
use std::os;
|
||||
use std::path::Path;
|
||||
use test::{AutoColor, DynTestName, DynTestFn, TestDesc, TestOpts, TestDescAndFn};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue