about summary refs log tree commit diff
path: root/src/libstd/sys/hermit
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2020-07-12 11:45:04 +0200
committerRalf Jung <post@ralfj.de>2020-07-12 11:46:42 +0200
commit7dc388654d6ef038065db23340e8eff7a567e5b4 (patch)
tree7ad0029db375a6c1839979b41aa90de3724e5e25 /src/libstd/sys/hermit
parent8082fb988a5915e693f18e6d299deaae64834079 (diff)
downloadrust-7dc388654d6ef038065db23340e8eff7a567e5b4.tar.gz
rust-7dc388654d6ef038065db23340e8eff7a567e5b4.zip
adjust remaining targets
Diffstat (limited to 'src/libstd/sys/hermit')
-rw-r--r--src/libstd/sys/hermit/mod.rs4
-rw-r--r--src/libstd/sys/hermit/thread_local_dtor.rs (renamed from src/libstd/sys/hermit/fast_thread_local.rs)0
-rw-r--r--src/libstd/sys/hermit/thread_local_key.rs (renamed from src/libstd/sys/hermit/thread_local.rs)10
3 files changed, 7 insertions, 7 deletions
diff --git a/src/libstd/sys/hermit/mod.rs b/src/libstd/sys/hermit/mod.rs
index 7bdc1be3b17..675b82ceb77 100644
--- a/src/libstd/sys/hermit/mod.rs
+++ b/src/libstd/sys/hermit/mod.rs
@@ -22,7 +22,6 @@ pub mod cmath;
 pub mod condvar;
 pub mod env;
 pub mod ext;
-pub mod fast_thread_local;
 pub mod fd;
 pub mod fs;
 pub mod io;
@@ -37,7 +36,8 @@ pub mod rwlock;
 pub mod stack_overflow;
 pub mod stdio;
 pub mod thread;
-pub mod thread_local;
+pub mod thread_local_dtor;
+pub mod thread_local_key;
 pub mod time;
 
 use crate::io::ErrorKind;
diff --git a/src/libstd/sys/hermit/fast_thread_local.rs b/src/libstd/sys/hermit/thread_local_dtor.rs
index 9b683fce157..9b683fce157 100644
--- a/src/libstd/sys/hermit/fast_thread_local.rs
+++ b/src/libstd/sys/hermit/thread_local_dtor.rs
diff --git a/src/libstd/sys/hermit/thread_local.rs b/src/libstd/sys/hermit/thread_local_key.rs
index f8be9863ed5..bf1b49eb83b 100644
--- a/src/libstd/sys/hermit/thread_local.rs
+++ b/src/libstd/sys/hermit/thread_local_key.rs
@@ -2,25 +2,25 @@ pub type Key = usize;
 
 #[inline]
 pub unsafe fn create(_dtor: Option<unsafe extern "C" fn(*mut u8)>) -> Key {
-    panic!("should not be used on the wasm target");
+    panic!("should not be used on the hermit target");
 }
 
 #[inline]
 pub unsafe fn set(_key: Key, _value: *mut u8) {
-    panic!("should not be used on the wasm target");
+    panic!("should not be used on the hermit target");
 }
 
 #[inline]
 pub unsafe fn get(_key: Key) -> *mut u8 {
-    panic!("should not be used on the wasm target");
+    panic!("should not be used on the hermit target");
 }
 
 #[inline]
 pub unsafe fn destroy(_key: Key) {
-    panic!("should not be used on the wasm target");
+    panic!("should not be used on the hermit target");
 }
 
 #[inline]
 pub fn requires_synchronized_create() -> bool {
-    panic!("should not be used on the wasm target");
+    panic!("should not be used on the hermit target");
 }