about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-07-31 22:51:12 +0200
committerGitHub <noreply@github.com>2023-07-31 22:51:12 +0200
commitbcfa49f162de64209cc9ed64cfcd36942e67b02a (patch)
treee6b553b0766ebfc8ea3bd8f24ed36a2591761544 /compiler/rustc_codegen_llvm/src
parentb3df56a65f9424a7f4af101091582f49cfc29286 (diff)
parentb7e68dfc945c4cf8d1753cc3a8be48a71bb39d5a (diff)
downloadrust-bcfa49f162de64209cc9ed64cfcd36942e67b02a.tar.gz
rust-bcfa49f162de64209cc9ed64cfcd36942e67b02a.zip
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`.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions