diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index 54d6e0190ddca..79e3ecc2a9c3b 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -439,6 +439,9 @@ impl<'test> TestCx<'test> { }; let mut rustc = Command::new(&self.config.rustc_path); + + self.build_all_auxiliary(&self.aux_output_dir(), &mut rustc); + rustc .arg(input) .args(&["-Z", &format!("unpretty={}", pretty_type)])