about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorUlrik Sverdrup <bluss@users.noreply.github.com>2017-09-02 16:28:48 +0200
committerUlrik Sverdrup <bluss@users.noreply.github.com>2017-09-03 11:32:46 +0200
commit758a0ce934510b4e77586d02bc30a3d1d5d63cae (patch)
tree6cb359706580fcce98cadf84d5fc1549a4d5fbbf /src/test/incremental/thinlto
parentefceda220e92f02f7a29a15e4cf56f5a3cdf1792 (diff)
downloadrust-758a0ce934510b4e77586d02bc30a3d1d5d63cae.tar.gz
rust-758a0ce934510b4e77586d02bc30a3d1d5d63cae.zip
alloc: Implement downcast Rc<Any> -> Rc<T>
Implement downcast the like it exists for Box.

The implementation avoids using into_raw/from_raw, because the pointer
arithmetic which should cancel does not seem to optimize out at the
moment.

Since Rc<T> is never Send, only Rc<Any> and not Rc<Any + Send>
implements downcast.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions