about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2017-09-16 09:16:46 -0500
committerAlex Crichton <alex@alexcrichton.com>2017-09-16 17:09:36 -0700
commit2a844b3d0d3e3db70d44ad1127f4d37b26211383 (patch)
tree516583f05131d30307cfd8ce436722f64aff38ae /src/test/incremental/thinlto
parent277476c4fb9e967ca28a7b529dbcf6b348cb787d (diff)
parent3a39d95330623d47bcfcd5cac2d6b3c30e12ae5a (diff)
downloadrust-2a844b3d0d3e3db70d44ad1127f4d37b26211383.tar.gz
rust-2a844b3d0d3e3db70d44ad1127f4d37b26211383.zip
Rollup merge of #44273 - bluss:rc-downcast, r=alexcrichton
Implement <Rc<Any>>::downcast

* Implement `<Rc<Any>>::downcast::<T>`
  * New unstable method. Works just like Box\<Any\>, but for Rc.
  * Any has two cases for its methods: Any and Any + Send; Rc is never Send, so that case is skipped for Rc.
  * Motivation for being a method with self is to match Box and there is no user-supplied type; the inner type is Any and downcast does not conflict with any method of Any.
* Arc was skipped because Any itself has no downcast for the case that makes most sense: Any + Send + Sync
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions