Skip to content

Commit

Permalink
Rollup merge of rust-lang#110851 - tamird:better-error-compiletest, r…
Browse files Browse the repository at this point in the history
…=compiler-errors

compiletest: emit assembly-output header in error

Improve the error message.
  • Loading branch information
matthiaskrgr authored Apr 27, 2023
2 parents 4cb584e + 9b2cf89 commit 781ae27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/compiletest/src/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2332,7 +2332,7 @@ impl<'test> TestCx<'test> {
// No extra flags needed.
}

Some(_) => self.fatal("unknown 'assembly-output' header"),
Some(header) => self.fatal(&format!("unknown 'assembly-output' header: {header}")),
None => self.fatal("missing 'assembly-output' header"),
}

Expand Down

0 comments on commit 781ae27

Please sign in to comment.