]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #13243 : huonw/rust/cellshow, r=thestinger
authorbors <bors@rust-lang.org>
Wed, 2 Apr 2014 09:21:39 +0000 (02:21 -0700)
committerbors <bors@rust-lang.org>
Wed, 2 Apr 2014 09:21:39 +0000 (02:21 -0700)
std: fix Cell's Show instance.

Previously it was printing the address of the Unsafe contained in the
Cell (i.e. the address of the Cell itself). This is clearly useless, and
was presumably a mistake due to writing `*&` instead of `&*`.

However, this later expression is likely also incorrect, since it takes
a reference into a Cell while other user code is executing (i.e. the
Show instance for the contained type), hence the contents should just be
copied out.


Trivial merge