-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Description
MutexGuard
's Debug
implementation just forwards to the Mutex
's Debug
implementation, which will simply print <locked>
, because the Mutex
was locked (by that very same MutexGuard
).
Effectively, this means that the current Debug
implementation of MutexGuard
is equivalent to:
f.write_str("MutexGuard { lock: Mutex { data: <locked> } }")
Instead, it should not try to lock the mutex, but use its own Deref
implementation to print the contents of the mutex.
jplattejonas-schievink, Aaron1011, scottmcm, jonhoo, solson and 5 more
Metadata
Metadata
Assignees
Labels
C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.