diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2014-04-01 23:58:31 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2014-04-01 23:58:31 +1100 |
| commit | 50fca0fbbb8f40714f79dbbec83bf61f34ed3945 (patch) | |
| tree | 557e59830af936367fb71b3077738927ca22071b /src/rustllvm/RustWrapper.cpp | |
| parent | b8ef9fd9c9f642ce7b8aed82782a1ed745d08d64 (diff) | |
| download | rust-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/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
