about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-04-02 02:21:39 -0700
committerbors <bors@rust-lang.org>2014-04-02 02:21:39 -0700
commitc98713486579f7f18bed64c2a160f8ef89b5733f (patch)
tree781ee81b10811610af957fc45d44b8a3f07fd986 /src/rustllvm/RustWrapper.cpp
parent80a9ff2a2dc28e1a326a7e6e58f8195d3e125c27 (diff)
parent50fca0fbbb8f40714f79dbbec83bf61f34ed3945 (diff)
downloadrust-c98713486579f7f18bed64c2a160f8ef89b5733f.tar.gz
rust-c98713486579f7f18bed64c2a160f8ef89b5733f.zip
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.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions