From 9fddb2afceaf67a6656d88f7360626b10f48f636 Mon Sep 17 00:00:00 2001 From: flip1995 Date: Thu, 27 Dec 2018 16:57:23 +0100 Subject: [PATCH] Use -Zui-testing flag --- tests/compile-test.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/compile-test.rs b/tests/compile-test.rs index 5cb37b6b6fd..8b8ffe86f19 100644 --- a/tests/compile-test.rs +++ b/tests/compile-test.rs @@ -55,7 +55,10 @@ fn config(mode: &str, dir: PathBuf) -> compiletest::Config { config.run_lib_path = rustc_lib_path(); config.compile_lib_path = rustc_lib_path(); } - config.target_rustcflags = Some(format!("-L {0} -L {0}/deps -Dwarnings", host_libs().display())); + config.target_rustcflags = Some(format!( + "-L {0} -L {0}/deps -Dwarnings -Zui-testing", + host_libs().display() + )); config.mode = cfg_mode; config.build_base = if rustc_test_suite().is_some() {