We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a655e64 commit 82a4befCopy full SHA for 82a4bef
compiler/rustc_driver_impl/src/lib.rs
@@ -1312,6 +1312,9 @@ pub fn install_ice_hook(
1312
std::env::set_var("RUST_BACKTRACE", "full");
1313
}
1314
1315
+ // Lock stderr to prevent interleaving of concurrent panics.
1316
+ let _guard = io::stderr().lock();
1317
+
1318
let using_internal_features = Arc::new(std::sync::atomic::AtomicBool::default());
1319
let using_internal_features_hook = using_internal_features.clone();
1320
panic::update_hook(Box::new(
0 commit comments