about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorjoboet <jonasboettiger@icloud.com>2023-03-18 20:06:12 +0100
committerjoboet <jonasboettiger@icloud.com>2023-04-19 08:35:22 +0200
commitb7e68dfc945c4cf8d1753cc3a8be48a71bb39d5a (patch)
tree9e9683c3f82e09a8fad4676118855249f48932dc /compiler/rustc_codegen_llvm/src
parent9e7f72c57d83a6e64f54b436dc3373871c3c4bb0 (diff)
downloadrust-b7e68dfc945c4cf8d1753cc3a8be48a71bb39d5a.tar.gz
rust-b7e68dfc945c4cf8d1753cc3a8be48a71bb39d5a.zip
std: 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