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 6dec76f commit 9c9c5b0Copy full SHA for 9c9c5b0
src/tools/compiletest/src/runtest.rs
@@ -1918,7 +1918,8 @@ impl<'test> TestCx<'test> {
1918
1919
fn dump_output_file(&self, out: &str, extension: &str) {
1920
let outfile = self.make_out_name(extension);
1921
- fs::write(outfile.as_std_path(), out).unwrap();
+ fs::write(outfile.as_std_path(), out)
1922
+ .unwrap_or_else(|err| panic!("failed to write {outfile}: {err:?}"));
1923
}
1924
1925
/// Creates a filename for output with the given extension.
0 commit comments