Skip to content

Commit 7c26d45

Browse files
committed
When flushing delayed span bugs, write to the ICE dump file even if it doesn't exist
Fix #113881.
1 parent 77cc0f0 commit 7c26d45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/src/panicking.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ pub fn panic_hook_with_disk_dump(info: &PanicInfo<'_>, path: Option<&crate::path
300300
};
301301

302302
if let Some(path) = path
303-
&& let Ok(mut out) = crate::fs::File::options().create(true).write(true).open(&path)
303+
&& let Ok(mut out) = crate::fs::File::options().create(true).append(true).open(&path)
304304
{
305305
write(&mut out, BacktraceStyle::full());
306306
}

0 commit comments

Comments
 (0)