We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f026ac2 commit eae87a9Copy full SHA for eae87a9
src/lib.rs
@@ -26,7 +26,8 @@ implements `Deref<TYPE>` and stores it in a static with name `NAME`. (Metadata e
26
attaching to this type.)
27
28
On first deref, `EXPR` gets evaluated and stored internally, such that all further derefs
29
-can return a reference to the same object.
+can return a reference to the same object. Note that this can lead to deadlocks
30
+if you have multiple lazy statics that depend on each other in their initialization.
31
32
Like regular `static mut`s, this macro only works for types that fulfill the `Sync`
33
trait.
0 commit comments