mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
fix aliasing violations in thread_local_const_init
This commit is contained in:
parent
6765010495
commit
7a5418dae1
@ -217,7 +217,7 @@ macro_rules! __thread_local_inner {
|
||||
// so now.
|
||||
0 => {
|
||||
$crate::thread::__FastLocalKeyInner::<$t>::register_dtor(
|
||||
&VAL as *const _ as *mut u8,
|
||||
$crate::ptr::addr_of_mut!(VAL) as *mut u8,
|
||||
destroy,
|
||||
);
|
||||
STATE = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user