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.
2 parents e804cd4 + 9c9c5b0 commit 9cf76edCopy full SHA for 9cf76ed
src/tools/compiletest/src/runtest.rs
@@ -1924,7 +1924,8 @@ impl<'test> TestCx<'test> {
1924
1925
fn dump_output_file(&self, out: &str, extension: &str) {
1926
let outfile = self.make_out_name(extension);
1927
- fs::write(outfile.as_std_path(), out).unwrap();
+ fs::write(outfile.as_std_path(), out)
1928
+ .unwrap_or_else(|err| panic!("failed to write {outfile}: {err:?}"));
1929
}
1930
1931
/// Creates a filename for output with the given extension.
0 commit comments