]> git.lizzy.rs Git - rust.git/commit
rollup merge of #20066: aturon/stab-2-cell
authorAlex Crichton <alex@alexcrichton.com>
Sun, 21 Dec 2014 08:04:22 +0000 (00:04 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Sun, 21 Dec 2014 17:27:36 +0000 (09:27 -0800)
commitb187ae55aa0b950eac17342a2ceddbc8408c5583
treefed7cda87041e485779a35550eeacc88a5f38860
parentf6a7388210e40741e9e5d50ef376ceba3cb34e61
parente473e700ccb94177cdc8e799b9f08bceb1c75601
rollup merge of #20066: aturon/stab-2-cell

This patch finalizes stabilization for the `cell` module, settling on
the current names `Cell`, `RefCell`, `UnsafeCell`, `Ref` and `RefMut`.

While we had considered improving these names, no one was able to
produce a truly compelling alternative.

There is one substantive change here: the `get` method of `UnsafeSell`
is now marked `unsafe`. Merely getting a raw pointer to the contents is
not, by itself, an unsafe operation. (Consider that you can always
safely turn a reference into a raw pointer, and that raw pointer may
then be aliased by subsequent references.)

r? @alexcrichton