Skip to content

Commit 7dc3886

Browse files
committed
adjust remaining targets
1 parent 8082fb9 commit 7dc3886

16 files changed

+21
-25
lines changed

src/libstd/sys/cloudabi/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ pub mod rwlock;
1616
pub mod stack_overflow;
1717
pub mod stdio;
1818
pub mod thread;
19-
#[path = "../unix/thread_local.rs"]
20-
pub mod thread_local;
19+
#[path = "../unix/thread_local_key.rs"]
20+
pub mod thread_local_key;
2121
pub mod time;
2222

2323
pub use crate::sys_common::os_str_bytes as os_str;

src/libstd/sys/hermit/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ pub mod cmath;
2222
pub mod condvar;
2323
pub mod env;
2424
pub mod ext;
25-
pub mod fast_thread_local;
2625
pub mod fd;
2726
pub mod fs;
2827
pub mod io;
@@ -37,7 +36,8 @@ pub mod rwlock;
3736
pub mod stack_overflow;
3837
pub mod stdio;
3938
pub mod thread;
40-
pub mod thread_local;
39+
pub mod thread_local_dtor;
40+
pub mod thread_local_key;
4141
pub mod time;
4242

4343
use crate::io::ErrorKind;

src/libstd/sys/wasm/thread_local.rs src/libstd/sys/hermit/thread_local_key.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@ pub type Key = usize;
22

33
#[inline]
44
pub unsafe fn create(_dtor: Option<unsafe extern "C" fn(*mut u8)>) -> Key {
5-
panic!("should not be used on the wasm target");
5+
panic!("should not be used on the hermit target");
66
}
77

88
#[inline]
99
pub unsafe fn set(_key: Key, _value: *mut u8) {
10-
panic!("should not be used on the wasm target");
10+
panic!("should not be used on the hermit target");
1111
}
1212

1313
#[inline]
1414
pub unsafe fn get(_key: Key) -> *mut u8 {
15-
panic!("should not be used on the wasm target");
15+
panic!("should not be used on the hermit target");
1616
}
1717

1818
#[inline]
1919
pub unsafe fn destroy(_key: Key) {
20-
panic!("should not be used on the wasm target");
20+
panic!("should not be used on the hermit target");
2121
}
2222

2323
#[inline]
2424
pub fn requires_synchronized_create() -> bool {
25-
panic!("should not be used on the wasm target");
25+
panic!("should not be used on the hermit target");
2626
}

src/libstd/sys/sgx/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pub mod rwlock;
3030
pub mod stack_overflow;
3131
pub mod stdio;
3232
pub mod thread;
33-
pub mod thread_local;
33+
pub mod thread_local_key;
3434
pub mod time;
3535

3636
pub use crate::sys_common::os_str_bytes as os_str;
File renamed without changes.

src/libstd/sys/unix/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ pub mod rwlock;
6767
pub mod stack_overflow;
6868
pub mod stdio;
6969
pub mod thread;
70-
pub mod thread_local_key;
7170
pub mod thread_local_dtor;
71+
pub mod thread_local_key;
7272
pub mod time;
7373

7474
pub use crate::sys_common::os_str_bytes as os_str;

src/libstd/sys/vxworks/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ pub mod cmath;
1313
pub mod condvar;
1414
pub mod env;
1515
pub mod ext;
16-
pub mod fast_thread_local;
1716
pub mod fd;
1817
pub mod fs;
1918
pub mod io;
@@ -29,7 +28,8 @@ pub mod rwlock;
2928
pub mod stack_overflow;
3029
pub mod stdio;
3130
pub mod thread;
32-
pub mod thread_local;
31+
pub mod thread_local_dtor;
32+
pub mod thread_local_key;
3333
pub mod time;
3434

3535
pub use crate::sys_common::os_str_bytes as os_str;

src/libstd/sys/vxworks/fast_thread_local.rs src/libstd/sys/vxworks/thread_local_dtor.rs

-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,3 @@ pub unsafe fn register_dtor(t: *mut u8, dtor: unsafe extern "C" fn(*mut u8)) {
55
use crate::sys_common::thread_local::register_dtor_fallback;
66
register_dtor_fallback(t, dtor);
77
}
8-
9-
pub fn requires_move_before_drop() -> bool {
10-
false
11-
}

src/libstd/sys/wasi/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ pub mod net;
3636
pub mod os;
3737
pub use crate::sys_common::os_str_bytes as os_str;
3838
pub mod ext;
39-
#[path = "../wasm/fast_thread_local.rs"]
40-
pub mod fast_thread_local;
4139
pub mod path;
4240
pub mod pipe;
4341
pub mod process;
@@ -47,8 +45,10 @@ pub mod rwlock;
4745
pub mod stack_overflow;
4846
pub mod stdio;
4947
pub mod thread;
50-
#[path = "../wasm/thread_local.rs"]
51-
pub mod thread_local;
48+
#[path = "../wasm/thread_local_dtor.rs"]
49+
pub mod thread_local_dtor;
50+
#[path = "../wasm/thread_local_key.rs"]
51+
pub mod thread_local_key;
5252
pub mod time;
5353

5454
#[cfg(not(test))]

src/libstd/sys/wasm/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ pub mod alloc;
2020
pub mod args;
2121
pub mod cmath;
2222
pub mod env;
23-
pub mod fast_thread_local;
2423
pub mod fs;
2524
pub mod io;
2625
pub mod memchr;
@@ -32,7 +31,8 @@ pub mod process;
3231
pub mod stack_overflow;
3332
pub mod stdio;
3433
pub mod thread;
35-
pub mod thread_local;
34+
pub mod thread_local_dtor;
35+
pub mod thread_local_key;
3636
pub mod time;
3737

3838
pub use crate::sys_common::os_str_bytes as os_str;
File renamed without changes.

src/libstd/sys/windows/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ pub mod process;
3434
pub mod rand;
3535
pub mod rwlock;
3636
pub mod thread;
37-
pub mod thread_local_key;
3837
pub mod thread_local_dtor;
38+
pub mod thread_local_key;
3939
pub mod time;
4040
cfg_if::cfg_if! {
4141
if #[cfg(not(target_vendor = "uwp"))] {

src/libstd/sys_common/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ pub mod remutex;
6565
pub mod rwlock;
6666
pub mod thread;
6767
pub mod thread_info;
68-
pub mod thread_local_key;
6968
pub mod thread_local_dtor;
69+
pub mod thread_local_key;
7070
pub mod util;
7171
pub mod wtf8;
7272

0 commit comments

Comments
 (0)