Skip to content

Commit 0caac69

Browse files
committed
Fix *T -> *const breakage
1 parent 3790f4a commit 0caac69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lazy_static.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ macro_rules! lazy_static {
9393
fn require_share<T: Share>(_: &T) { }
9494

9595
unsafe {
96-
static mut s: *$T = 0 as *$T;
96+
static mut s: *const $T = 0 as *const $T;
9797
static mut ONCE: Once = ONCE_INIT;
9898
ONCE.doit(|| {
99-
s = transmute::<Box<$T>, *$T>(box() ($e));
99+
s = transmute::<Box<$T>, *const $T>(box() ($e));
100100
});
101101
let static_ref = &*s;
102102
require_share(static_ref);

0 commit comments

Comments
 (0)