]> git.lizzy.rs Git - rust.git/commit
auto merge of #17745 : aturon/rust/revert-any-private, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 7 Oct 2014 03:27:12 +0000 (03:27 +0000)
committerbors <bors@rust-lang.org>
Tue, 7 Oct 2014 03:27:12 +0000 (03:27 +0000)
commit8d702167ba6af50c64683685bae4956cb094a23a
treee9eab7a42630939fd6640bad41b0ecded7076d5d
parentb5ba2f5517b1f90d07969ca3facdf5132e42436c
parentd007d44dad08aa4239a2e85ce00a0466f32a4440
auto merge of #17745 : aturon/rust/revert-any-private, r=alexcrichton

[Previously](https://github.com/rust-lang/rust/commit/e5da6a71a6a0b46dd3630fc8326e6d5906a1fde6), the `Any` trait was split into a private portion and an (empty) public portion, in order to hide the implementation strategy used for downcasting. However, the [new rules](https://github.com/rust-lang/rust/commit/e9ad12c0cae5c43ada6641c7dc840a0fbe5010a2) for privacy forbid `AnyPrivate` from actually being private.

This patch thus reverts the introduction of `AnyPrivate`.

Although this is unlikely to break any real code, it removes a public trait and is therefore a:

[breaking-change]