Skip to content

Commit a0926a2

Browse files
committed
Use the full path for the Box type.
Here's a problem when it causes a problem: servo/servo#10488 (comment)
1 parent 97e1d7b commit a0926a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ macro_rules! lazy_static {
116116
#[cfg(not(feature="nightly"))]
117117
unsafe fn __stability() -> &'static $T {
118118
use std::mem::transmute;
119+
use std::boxed::Box;
119120

120121
static mut DATA: *const $T = 0 as *const $T;
121122
static mut ONCE: Once = ONCE_INIT;

0 commit comments

Comments
 (0)