]> git.lizzy.rs Git - rust.git/commit
Stabilize cell
authorAaron Turon <aturon@mozilla.com>
Sat, 20 Dec 2014 07:47:46 +0000 (23:47 -0800)
committerAaron Turon <aturon@mozilla.com>
Sat, 20 Dec 2014 07:47:46 +0000 (23:47 -0800)
commite473e700ccb94177cdc8e799b9f08bceb1c75601
tree5df18e755b692f474033d7cdc858af2a1e2de85c
parent1c2df5cc3cfc0c9e80adf9fa6504d55056741c5a
Stabilize 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.)
src/libcore/cell.rs