Use -Zui-testing flag

This commit is contained in:
flip1995 2018-12-27 16:57:23 +01:00
parent dfe1232822
commit 9fddb2afce
No known key found for this signature in database
GPG key ID: E8E897A5870E41C2

View file

@ -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() {