]> git.lizzy.rs Git - rust.git/commit
Auto merge of #35627 - apasel422:coerce-cell, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 23 Aug 2016 11:16:28 +0000 (04:16 -0700)
committerGitHub <noreply@github.com>
Tue, 23 Aug 2016 11:16:28 +0000 (04:16 -0700)
commit43204fff5d0a656f8a94bfff3129e04bc9d30ad4
tree9435f13325fe19f06552bf1b51596f3ea274218b
parent599f1b96b19c2a67b1e854a64e0cd43af3de164d
parent1fd791ad62a4bb901be465997d9efbf4090819f0
Auto merge of #35627 - apasel422:coerce-cell, r=alexcrichton

Implement `CoerceUnsized` for `{Cell, RefCell, UnsafeCell}`

These impls are analogous to the one for `NonZero`. It's occasionally useful to be able to coerce the cell types when they're being used inside another abstraction. See Manishearth/rust-gc#17 for an example.

r? @eddyb
src/libcore/cell.rs