about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-07-23 19:43:36 +0000
committerbors <bors@rust-lang.org>2018-07-23 19:43:36 +0000
commit00204c2f52ec0280bda17de347c79f88e9c6b479 (patch)
treee6eee7e83e405655321d9a35a1238e1b23e069c6 /src/rustllvm/RustWrapper.cpp
parent8dbbd81f7ed83943b870407ef44aecf6664e7679 (diff)
parent489101cc45d21d3909a728d16864e26599c12bee (diff)
downloadrust-00204c2f52ec0280bda17de347c79f88e9c6b479.tar.gz
rust-00204c2f52ec0280bda17de347c79f88e9c6b479.zip
Auto merge of #50494 - F001:as_cell, r=alexcrichton
Implement rfc 1789: Conversions from `&mut T` to `&Cell<T>`

I'm surprised that RFC 1789 has not been implemented for several months. Tracking issue: https://github.com/rust-lang/rust/issues/43038

Please note: when I was writing tests for `&Cell<[i32]>`, I found it is not easy to get the length of the contained slice. So I designed a `get_with` method which might be useful for similar cases. This method is not designed in the RFC, and it certainly needs to be reviewed by core team. I think it has some connections with `Cell::update` https://github.com/rust-lang/rust/issues/50186 , which is also in design phase.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions