about summary refs log tree commit diff
path: root/library/std/src/sys/pal/unix/thread.rs
diff options
context:
space:
mode:
authorjoboet <jonasboettiger@icloud.com>2024-03-31 11:28:24 +0200
committerjoboet <jonasboettiger@icloud.com>2024-03-31 11:28:24 +0200
commit76684181018640df1769604cd92ed6beb30a27d6 (patch)
tree3acae87f5ed8d387c023f5ea8fd83f4854df1cb5 /library/std/src/sys/pal/unix/thread.rs
parent5b9d7ab558fe6ee53bd40e16a20c25716f3c9e56 (diff)
downloadrust-76684181018640df1769604cd92ed6beb30a27d6.tar.gz
rust-76684181018640df1769604cd92ed6beb30a27d6.zip
std: move `thread::current` TLS variable out of `thread_info`
Diffstat (limited to 'library/std/src/sys/pal/unix/thread.rs')
-rw-r--r--library/std/src/sys/pal/unix/thread.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/library/std/src/sys/pal/unix/thread.rs b/library/std/src/sys/pal/unix/thread.rs
index 06b46b3c122..badedaa8ae9 100644
--- a/library/std/src/sys/pal/unix/thread.rs
+++ b/library/std/src/sys/pal/unix/thread.rs
@@ -729,17 +729,6 @@ mod cgroups {
     }
 }
 
-pub mod guard {
-    use crate::ops::Range;
-    pub type Guard = Range<usize>;
-    pub unsafe fn current() -> Option<Guard> {
-        None
-    }
-    pub unsafe fn init() -> Option<Guard> {
-        None
-    }
-}
-
 // glibc >= 2.15 has a __pthread_get_minstack() function that returns
 // PTHREAD_STACK_MIN plus bytes needed for thread-local storage.
 // We need that information to avoid blowing up when a small stack