Only error on unfixed diagnostics

This commit is contained in:
Aaron Hill 2020-10-19 11:49:07 -04:00
parent 2d17597f84
commit 4b4f84f327
No known key found for this signature in database
GPG Key ID: B4087E510E98B164

View File

@ -3122,10 +3122,12 @@ impl<'test> TestCx<'test> {
self.fatal_proc_rec("failed to compile fixed code", &res);
}
if !res.stderr.is_empty() && !self.props.rustfix_only_machine_applicable {
if !json::rustfix_diagnostics_only(&res.stderr).is_empty() {
self.fatal_proc_rec("fixed code is still producing diagnostics", &res);
}
}
}
}
fn run_mir_opt_test(&self) {
let pm = self.pass_mode();