Merge pull request #1922 from rust-lang-nursery/compiletest_update

Update to latest compiletest version
This commit is contained in:
Martin Carton 2017-08-02 19:51:59 +02:00 committed by GitHub
commit 75faed13b4
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
use std::env::{set_var, var}; use std::env::{set_var, var};
fn run_mode(dir: &'static str, mode: &'static str) { fn run_mode(dir: &'static str, mode: &'static str) {
let mut config = compiletest::default_config(); let mut config = compiletest::Config::default();
let cfg_mode = mode.parse().expect("Invalid mode"); let cfg_mode = mode.parse().expect("Invalid mode");
config.target_rustcflags = Some("-L target/debug/ -L target/debug/deps -Dwarnings".to_owned()); config.target_rustcflags = Some("-L target/debug/ -L target/debug/deps -Dwarnings".to_owned());

View File

@ -18,7 +18,7 @@ fn dogfood() {
} }
} }
let mut config = compiletest::default_config(); let mut config = compiletest::Config::default();
let cfg_mode = "run-fail".parse().expect("Invalid mode"); let cfg_mode = "run-fail".parse().expect("Invalid mode");
let mut s = String::new(); let mut s = String::new();