Closed
Description
At least for inline_lazy
, the Option<T>
can be wrapped in Cell
, needing only:
unsafe impl<T: Sync> Sync for Lazy<T> {}
Then we can just have a regular static
and get
can take &'static self
safely.
EDIT: As noted below (#117 (comment)), the use of &'static mut Lazy<T>
is unsound.
Also, the impl
above exists already, UB was introduced by regression at a308da1.
Metadata
Metadata
Assignees
Labels
No labels