]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #35392 - malbarbo:cell-from, r=brson
authorEduard-Mihai Burtescu <edy.burt@gmail.com>
Sun, 14 Aug 2016 17:29:47 +0000 (20:29 +0300)
committerGitHub <noreply@github.com>
Sun, 14 Aug 2016 17:29:47 +0000 (20:29 +0300)
commitfa57f358a326af04eb354fb37c9afd38e8bb87bd
tree3a8e5c424a48ff9d990d799c68bd1ef57762be57
parent9d1900b417a8425c887b1007df6b1c4eaebddb08
parent1403df72c82d3c3c2c19369c5f4bb34b3e095604
Rollup merge of #35392 - malbarbo:cell-from, r=brson

Implement From for Cell, RefCell and UnsafeCell

Considering that `From` is implemented for `Box`, `Rc` and `Arc`, it seems [reasonable](https://internals.rust-lang.org/t/implementing-from-t-for-other-std-types/3744) to implement it for `Cell`, `RefCell` and `UnsafeCell`.
src/libcore/cell.rs