X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftools%2Fcompiletest%2Fsrc%2Fmain.rs;h=9bf427953a15302c006bd799519bfcd108b8c48a;hb=b03afd5fc46f9e80932af9f68cf4dc7a1c9c1f2c;hp=7c51de5df226768395388c350fa04ffad0ca663b;hpb=aeb32f01b674e383d240b3a173d6d9bc29c7a6ad;p=rust.git diff --git a/src/tools/compiletest/src/main.rs b/src/tools/compiletest/src/main.rs index 7c51de5df22..9bf427953a1 100644 --- a/src/tools/compiletest/src/main.rs +++ b/src/tools/compiletest/src/main.rs @@ -1,6 +1,7 @@ #![crate_name = "compiletest"] #![feature(test)] #![feature(vec_remove_item)] +#![deny(warnings)] extern crate test; @@ -567,6 +568,7 @@ pub fn test_opts(config: &Config) -> test::TestOpts { skip: vec![], list: false, options: test::Options::new(), + time_options: None, } } @@ -579,7 +581,7 @@ pub fn make_tests(config: &Config) -> Vec { &config.src_base, &PathBuf::new(), &mut tests, - ).unwrap(); + ).expect(&format!("Could not read tests from {}", config.src_base.display())); tests } @@ -702,6 +704,7 @@ pub fn make_test(config: &Config, testpaths: &TestPaths) -> Vec