We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c20f8d2 commit d93af61Copy full SHA for d93af61
library/std/src/thread/local.rs
@@ -217,9 +217,9 @@ macro_rules! __thread_local_inner {
217
// 1 == dtor registered, dtor not run
218
// 2 == dtor registered and is running or has run
219
#[thread_local]
220
- static mut STATE: u8 = 0;
+ static mut STATE: $crate::primitive::u8 = 0;
221
222
- unsafe extern "C" fn destroy(ptr: *mut u8) {
+ unsafe extern "C" fn destroy(ptr: *mut $crate::primitive::u8) {
223
let ptr = ptr as *mut $t;
224
225
unsafe {
@@ -235,7 +235,7 @@ macro_rules! __thread_local_inner {
235
// so now.
236
0 => {
237
$crate::thread::__FastLocalKeyInner::<$t>::register_dtor(
238
- $crate::ptr::addr_of_mut!(VAL) as *mut u8,
+ $crate::ptr::addr_of_mut!(VAL) as *mut $crate::primitive::u8,
239
destroy,
240
);
241
STATE = 1;
0 commit comments