Skip to content

Commit

Permalink
make pretty source comparison check be fatal (fixes #52255)
Browse files Browse the repository at this point in the history
  • Loading branch information
tinco committed Jul 11, 2018
1 parent ce45cbb commit f0b1a78
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/tools/compiletest/src/runtest.rs
Expand Up @@ -519,9 +519,8 @@ impl<'test> TestCx<'test> {

fn compare_source(&self, expected: &str, actual: &str) {
if expected != actual {
self.error("pretty-printed source does not match expected source");
println!(
"\n\
self.fatal(&format!(
"pretty-printed source does not match expected source\n\
expected:\n\
------------------------------------------\n\
{}\n\
Expand All @@ -531,7 +530,7 @@ impl<'test> TestCx<'test> {
{}\n\
------------------------------------------\n\
\n",
expected, actual
expected, actual)
);
}
}
Expand Down

0 comments on commit f0b1a78

Please sign in to comment.