remove some warnings

This commit is contained in:
Erick Tryzelaar 2013-04-30 22:47:09 -07:00
parent 5fee32457f
commit e9688fcfe3
4 changed files with 4 additions and 5 deletions

View File

@ -82,14 +82,13 @@ pub fn load_props(testfile: &Path) -> TestProps {
}
pub fn is_test_ignored(config: config, testfile: &Path) -> bool {
let mut found = false;
for iter_header(testfile) |ln| {
if parse_name_directive(ln, ~"xfail-test") { return true; }
if parse_name_directive(ln, xfail_target()) { return true; }
if config.mode == common::mode_pretty &&
parse_name_directive(ln, ~"xfail-pretty") { return true; }
};
return found;
return true;
fn xfail_target() -> ~str {
~"xfail-" + str::from_slice(os::SYSNAME)

View File

@ -106,7 +106,7 @@ fn run_rpass_test(config: config, props: TestProps, testfile: &Path) {
fatal_ProcRes(~"test run failed!", ProcRes);
}
} else {
let mut ProcRes = jit_test(config, props, testfile);
let ProcRes = jit_test(config, props, testfile);
if ProcRes.status != 0 { fatal_ProcRes(~"jit failed!", ProcRes); }
}

View File

@ -11,7 +11,7 @@
use ast::*;
use ast;
use ast_util;
use codemap::{span, dummy_sp, spanned};
use codemap::{span, spanned};
use parse::token;
use visit;
use opt_vec;

View File

@ -24,7 +24,7 @@ use parse::token::{ident_interner, mk_ident_interner};
use core::io;
use core::option::{None, Option, Some};
use core::path::Path;
use core::result::{Err, Ok, Result};
use core::result::{Err, Ok};
pub mod lexer;
pub mod parser;