rust-lang/rust — pull request #19388 by nick29581 (2014-11-29 01:33:16+00:00)
Title: Add some impls of Show (RefCell, Weak, some resolve types)

r? @huon or @acrichto

Apparently, we have previously rejected an RFC like this. However, since then we removed `{:?}` and so without this debugging gets really difficult as soon as there is a RefCell anywhere, so I believe there is more benefit to adding these impls than there was before. By using "try_borrow" we can avoid panicing in `Show` (I think).

@ huon in response to a comment in #19254: I noticed that `drop()` checks for the ptr being null, so I checked here too. Now I am checking for both, if you're confident I can change to only checking `strong()`.