bors 3701bdc633 Auto merge of #107329 - joboet:optimize_lazylock, r=m-ou-se
Optimize `LazyLock` size

The initialization function was unnecessarily stored separately from the data to be initialized. Since both cannot exist at the same time, a `union` can be used, with the `Once` acting as discriminant. This unfortunately requires some extra methods on `Once` so that `Drop` can be implemented correctly and efficiently.

`@rustbot` label +T-libs +A-atomic
2023-02-18 09:29:21 +00:00
..
2023-01-10 21:54:53 -05:00
2022-11-14 14:25:44 +01:00
2023-01-26 16:16:03 +01:00
2023-01-26 16:16:03 +01:00
2022-11-14 14:25:44 +01:00