From 21d1f6b9ad5e9407ddd18829f58267ef7b80e03c Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Fri, 22 Sep 2017 13:46:05 +0200 Subject: [PATCH] Don't use deprecated method to create compiletest config --- tests/cfail.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/cfail.rs b/tests/cfail.rs index a475894d82..3636c72c5a 100644 --- a/tests/cfail.rs +++ b/tests/cfail.rs @@ -3,10 +3,11 @@ extern crate compiletest_rs as compiletest; use std::path::PathBuf; use compiletest::common::Mode; +use compiletest::Config; #[test] fn cfail() { - let mut config = compiletest::default_config(); + let mut config = Config::default(); config.mode = Mode::CompileFail; config.src_base = PathBuf::from(format!("tests/cfail")); config.target_rustcflags = Some(