Don't use deprecated method to create compiletest config

This commit is contained in:
Jonas Schievink 2017-09-22 13:46:05 +02:00
parent bbc873622d
commit 21d1f6b9ad

View file

@ -3,10 +3,11 @@ extern crate compiletest_rs as compiletest;
use std::path::PathBuf; use std::path::PathBuf;
use compiletest::common::Mode; use compiletest::common::Mode;
use compiletest::Config;
#[test] #[test]
fn cfail() { fn cfail() {
let mut config = compiletest::default_config(); let mut config = Config::default();
config.mode = Mode::CompileFail; config.mode = Mode::CompileFail;
config.src_base = PathBuf::from(format!("tests/cfail")); config.src_base = PathBuf::from(format!("tests/cfail"));
config.target_rustcflags = Some( config.target_rustcflags = Some(