about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2021-03-28 01:33:18 +0900
committerGitHub <noreply@github.com>2021-03-28 01:33:18 +0900
commit5dc29e189b979756839171e84e8f2a39f57f2793 (patch)
treef078f73d0c39eb58345d2cb8f316881698b5ec0c /compiler/rustc_codegen_llvm/src
parent53cc8065a001e0a488b15e39ada2c01012549988 (diff)
parentd73015397dc43eb8067644ab2bbb1c2203c795d4 (diff)
downloadrust-5dc29e189b979756839171e84e8f2a39f57f2793.tar.gz
rust-5dc29e189b979756839171e84e8f2a39f57f2793.zip
Rollup merge of #83559 - m-ou-se:rwlock-guard-debug-fix, r=jackh726
Fix Debug implementation for RwLock{Read,Write}Guard.

This would attempt to print the Debug representation of the lock that the guard has locked, which will try to lock again, fail, and just print `"<locked>"` unhelpfully.

After this change, this just prints the contents of the mutex, like the other smart pointers (and MutexGuard) do.

MutexGuard had this problem too: https://github.com/rust-lang/rust/issues/57702
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions