mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 12:39:31 +03:00
Check diagnostic output in incremental cpass and rpass revisions
This allows warnings to be annotated, and verifies that no unexpected warnings occur.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
use super::{FailMode, ProcRes, TestCx, WillExecute};
|
||||
use crate::errors;
|
||||
|
||||
impl TestCx<'_> {
|
||||
pub(super) fn run_incremental_test(&self) {
|
||||
@@ -57,10 +56,7 @@ fn run_cpass_test(&self) {
|
||||
self.fatal_proc_rec("compilation failed!", &proc_res);
|
||||
}
|
||||
|
||||
// FIXME(#41968): Move this check to tidy?
|
||||
if !errors::load_errors(&self.testpaths.file, self.revision).is_empty() {
|
||||
self.fatal("build-pass tests with expected warnings should be moved to ui/");
|
||||
}
|
||||
self.check_compiler_output_for_incr(&proc_res);
|
||||
}
|
||||
|
||||
fn run_rpass_test(&self) {
|
||||
@@ -72,10 +68,7 @@ fn run_rpass_test(&self) {
|
||||
self.fatal_proc_rec("compilation failed!", &proc_res);
|
||||
}
|
||||
|
||||
// FIXME(#41968): Move this check to tidy?
|
||||
if !errors::load_errors(&self.testpaths.file, self.revision).is_empty() {
|
||||
self.fatal("run-pass tests with expected warnings should be moved to ui/");
|
||||
}
|
||||
self.check_compiler_output_for_incr(&proc_res);
|
||||
|
||||
if let WillExecute::Disabled = should_run {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user