| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2024-03-27 | impl get_mut_or_init and get_mut_or_try_init for OnceCell and OnceLock | tison | -0/+81 | |
| See also https://github.com/rust-lang/rust/issues/74465#issuecomment-1676522051 Signed-off-by: tison <wander4096@gmail.com> | ||||
| 2024-02-14 | Fix typos in `OneLock` doc | Igor | -1/+1 | |
| 2023-12-08 | OnceLock: Rework example, statics aren't dropped | Ian Rees | -14/+25 | |
| 2023-11-25 | Update `OnceLock` documentation to give a concrete 'lazy static' example, ↵ | Corey Farwell | -9/+41 | |
| and expand on existing example. | ||||
| 2023-10-13 | Implement `OnceCell/Lock::try_insert()` | daxpedda | -3/+40 | |
| 2023-07-31 | Rollup merge of #109318 - joboet:better_fmt_placeholder, r=dtolnay | Matthias Krüger | -3/+5 | |
| Make `Debug` representations of `[Lazy, Once]*[Cell, Lock]` consistent with `Mutex` and `RwLock` `Mutex` prints `<locked>` as a field value when its inner value cannot be accessed, but the lazy types print a fixed string like "`OnceCell(Uninit)`". This could cause confusion if the inner type is a unit type named `Uninit` and does not respect the pretty-printing flag. With this change, the format message is now "`OnceCell(<uninit>)`", consistent with `Mutex`. | ||||
| 2023-04-28 | replace version placeholders | Pietro Albini | -20/+20 | |
| 2023-04-19 | std: make `Debug` representations of `[Lazy, Once]*[Cell, Lock]` consistent ↵ | joboet | -3/+5 | |
| with `Mutex` and `RwLock` `Mutex` prints `<locked>` as a field value when its inner value cannot be accessed, but the lazy types print a fixed string like "`OnceCell(Uninit)`". This could cause confusion if the inner type is a unit type named `Uninit` and does not respect the pretty-printing flag. With this change, the format message is now "`OnceCell(<uninit>)`", consistent with `Mutex`. | ||||
| 2023-04-16 | rm const traits in libcore | Deadbeef | -2/+1 | |
| 2023-03-29 | Stabilize a portion of 'once_cell' | Trevor Gross | -37/+22 | |
| Move items not part of this stabilization to 'lazy_cell' or 'once_cell_try' | ||||
| 2022-12-13 | Add #[inline] marker to OnceCell/LazyCell/OnceLock/LazyLock | Trevor Gross | -1/+16 | |
| 2022-11-17 | Properly link `{Once,Lazy}{Cell,Lock}` in docs | Maybe Waffle | -2/+4 | |
| 2022-09-03 | std: make `ReentrantMutex` movable and `const`; simplify `Stdout` initialization | joboet | -55/+0 | |
| 2022-06-16 | Move/rename `lazy::Sync{OnceCell,Lazy}` to `sync::{Once,Lazy}Lock` | Maybe Waffle | -0/+496 | |
