You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/lib.rs
+1-4Lines changed: 1 addition & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -64,10 +64,7 @@ fn main() {
64
64
65
65
# Implementation details
66
66
67
-
The `Deref` implementation uses a hidden `static mut` that is guarded by a atomic check
68
-
using the `sync::Once` abstraction. All lazily evaluated values are currently
69
-
put in a heap allocated box, due to the Rust language currently not providing any way to
70
-
define uninitialized `static mut` values.
67
+
The `Deref` implementation uses a hidden static variable that is guarded by a atomic check on each access. On stable Rust, the macro may need to allocate each static on the heap.
0 commit comments