You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: std/src/sys/pal/common/exit_guard.rs
+4-3
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
cfg_if::cfg_if! {
2
2
if #[cfg(target_os = "linux")]{
3
-
/// Mitigation for https://github.com/rust-lang/rust/issues/126600
3
+
/// Mitigation for <https://github.com/rust-lang/rust/issues/126600>
4
4
///
5
5
/// On `unix` (where `libc::exit` may not be thread-safe), ensure that only one Rust thread
6
6
/// calls `libc::exit` (or returns from `main`) by calling this function before calling
@@ -78,9 +78,10 @@ cfg_if::cfg_if! {
78
78
}
79
79
}
80
80
} else {
81
-
/// Mitigation for https://github.com/rust-lang/rust/issues/126600
81
+
/// Mitigation for <https://github.com/rust-lang/rust/issues/126600>
82
82
///
83
-
/// Mitigation is ***NOT*** implemented on this platform, either because this platform is not affected, or because mitigation is not yet implemented for this platform.
83
+
/// Mitigation is ***NOT*** implemented on this platform, either because this platform
84
+
/// is not affected, or because mitigation is not yet implemented for this platform.
84
85
pub(crate)fn unique_thread_exit(){
85
86
// Mitigation not required on platforms where `exit` is thread-safe.
0 commit comments