8000
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 596be7e commit 47d0cbcCopy full SHA for 47d0cbc
std/src/sys/pal/common/exit_guard.rs
@@ -1,13 +1,5 @@
1
cfg_if::cfg_if! {
2
- if #[cfg(miri)] {
3
- /// Mitigation for <https://github.com/rust-lang/rust/issues/126600>
4
- ///
5
- /// This mitigation is not necessary when running under Miri, so this function does nothing
6
- /// when running under Miri.
7
- pub(crate) fn unique_thread_exit() {
8
- // Mitigation not required on Miri, where `exit` is thread-safe.
9
- }
10
- } else if #[cfg(target_os = "linux")] {
+ if #[cfg(target_os = "linux")] {
11
/// Mitigation for <https://github.com/rust-lang/rust/issues/126600>
12
///
13
/// On UNIX-like platforms (where `libc::exit` may not be thread-safe), ensure that only one
0 commit comments