Fix Debug implementations that hardcode the representation of a struct #44771
Labels
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
The
Debug
implementation forMutex
looks like this:This is bad because it does not honor the
#
pretty-print modifier.It prints
instead of
A correct implementation would use
debug_struct
.There seem to be lots of instances of this in the standard library. The following search is a good place to start.
The text was updated successfully, but these errors were encountered: