We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a655e64 commit 288380dCopy full SHA for 288380d
compiler/rustc_driver_impl/src/lib.rs
@@ -1317,6 +1317,9 @@ pub fn install_ice_hook(
1317
panic::update_hook(Box::new(
1318
move |default_hook: &(dyn Fn(&PanicInfo<'_>) + Send + Sync + 'static),
1319
info: &PanicInfo<'_>| {
1320
+ // Lock stderr to prevent interleaving of concurrent panics.
1321
+ let _guard = io::stderr().lock();
1322
+
1323
// If the error was caused by a broken pipe then this is not a bug.
1324
// Write the error and return immediately. See #98700.
1325
#[cfg(windows)]
0 commit comments