rust/library/core/src/fmt
Matthias Krüger bcfa49f162
Rollup merge of #109318 - joboet:better_fmt_placeholder, r=dtolnay
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-07-31 22:51:12 +02:00
..
builders.rs docs: fmt::Debug*: Fix comments for finish method. 2023-07-26 19:02:26 +07:00
float.rs Mark internal functions and traits unsafe 2023-05-15 14:31:00 -04:00
mod.rs Rollup merge of #109318 - joboet:better_fmt_placeholder, r=dtolnay 2023-07-31 22:51:12 +02:00
nofloat.rs core: add unstable no_fp_fmt_parse to disable float fmt/parse code 2021-07-02 22:52:37 +01:00
num.rs Mark internal functions and traits unsafe 2023-05-15 14:31:00 -04:00
rt.rs Limit lifetime of format_args!() with inlined args. 2023-05-09 16:08:40 +02:00