]> git.lizzy.rs Git - rust.git/commit
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)
commitc98713486579f7f18bed64c2a160f8ef89b5733f
tree781ee81b10811610af957fc45d44b8a3f07fd986
parent80a9ff2a2dc28e1a326a7e6e58f8195d3e125c27
parent50fca0fbbb8f40714f79dbbec83bf61f34ed3945
auto merge of #13243 : huonw/rust/cellshow, r=thestinger

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.