diff --git a/tests/compile-test.rs b/tests/compile-test.rs index b09ce0e4ee8..f7d0c69afb0 100644 --- a/tests/compile-test.rs +++ b/tests/compile-test.rs @@ -4,7 +4,7 @@ use std::path::PathBuf; use std::env::{set_var, var}; 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"); config.target_rustcflags = Some("-L target/debug/ -L target/debug/deps -Dwarnings".to_owned()); diff --git a/tests/dogfood.rs b/tests/dogfood.rs index 83b2acf7d81..7a2f6701501 100644 --- a/tests/dogfood.rs +++ b/tests/dogfood.rs @@ -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 mut s = String::new();