mirror of
https://github.com/rust-lang/rust.git
synced 2026-03-23 20:15:29 +00:00
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.