Files
rust/library/std/src
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
..
2022-08-01 20:10:40 +00:00
2022-11-17 12:50:33 -08:00
2022-11-17 12:50:33 -08:00
2023-02-08 12:35:27 +01:00
2022-08-18 18:07:39 -04:00
2022-12-28 09:18:43 -05:00
2022-04-14 01:33:13 -04:00
2022-09-26 10:14:45 +02:00
2022-10-07 15:21:47 +02:00
2022-12-31 15:32:09 +05:30
2022-12-28 09:18:43 -05:00
2023-01-28 16:07:34 -07:00