From b605cd1bb90e84b8c04a8fddeca7b1b171f0168a Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 12 Jan 2019 16:22:23 -0800 Subject: [PATCH] Make compiletest setup consistent with serde_json --- test_suite/tests/compiletest.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test_suite/tests/compiletest.rs b/test_suite/tests/compiletest.rs index c1768b4d..385ddc5c 100644 --- a/test_suite/tests/compiletest.rs +++ b/test_suite/tests/compiletest.rs @@ -4,7 +4,7 @@ use compiletest_rs as compiletest; #[test] fn ui() { - let config = compiletest::Config { + compiletest::run_tests(&compiletest::Config { mode: compiletest::common::Mode::Ui, src_base: std::path::PathBuf::from("tests/ui"), target_rustcflags: Some(String::from( @@ -16,7 +16,5 @@ fn ui() { ", )), ..Default::default() - }; - - compiletest::run_tests(&config); + }); }