We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce45cbb commit f0b1a78Copy full SHA for f0b1a78
src/tools/compiletest/src/runtest.rs
@@ -519,9 +519,8 @@ impl<'test> TestCx<'test> {
519
520
fn compare_source(&self, expected: &str, actual: &str) {
521
if expected != actual {
522
- self.error("pretty-printed source does not match expected source");
523
- println!(
524
- "\n\
+ self.fatal(&format!(
+ "pretty-printed source does not match expected source\n\
525
expected:\n\
526
------------------------------------------\n\
527
{}\n\
@@ -531,7 +530,7 @@ impl<'test> TestCx<'test> {
531
530
532
533
\n",
534
- expected, actual
+ expected, actual)
535
);
536
}
537
0 commit comments