about summary refs log tree commit diff
path: root/src/test/codegen/stack-alloc-string-slice.rs
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2014-04-01 23:58:31 +1100
committerHuon Wilson <dbau.pp+github@gmail.com>2014-04-01 23:58:31 +1100
commit50fca0fbbb8f40714f79dbbec83bf61f34ed3945 (patch)
tree557e59830af936367fb71b3077738927ca22071b /src/test/codegen/stack-alloc-string-slice.rs
parentb8ef9fd9c9f642ce7b8aed82782a1ed745d08d64 (diff)
downloadrust-50fca0fbbb8f40714f79dbbec83bf61f34ed3945.tar.gz
rust-50fca0fbbb8f40714f79dbbec83bf61f34ed3945.zip
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/test/codegen/stack-alloc-string-slice.rs')
0 files changed, 0 insertions, 0 deletions