Skip to content

std: Stabilize the rest of Any/BoxAny #23876

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 1, 2015

Conversation

alexcrichton
Copy link
Member

This commit stabilizes the following APIs:

  • TypeId::of - now that it has an Any bound it's ready to be stable.
  • Box<Any>::downcast - now that an inherent impl on Box<Any> as well as
    Box<Any+Send> is allowed the BoxAny trait is removed in favor of these
    inherent methods.

This is a breaking change due to the removal of the BoxAny trait, but
consumers can simply remove imports to fix crates.

[breaking-change]

This commit stabilizes the following APIs:

* `TypeId::of` - now that it has an `Any` bound it's ready to be stable.
* `Box<Any>::downcast` - now that an inherent impl on `Box<Any>` as well as
  `Box<Any+Send>` is allowed the `BoxAny` trait is removed in favor of these
  inherent methods.

This is a breaking change due to the removal of the `BoxAny` trait, but
consumers can simply remove imports to fix crates.

[breaking-change]
@rust-highfive
Copy link
Contributor

r? @pcwalton

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Member Author

r? @aturon

@rust-highfive rust-highfive assigned aturon and unassigned pcwalton Mar 30, 2015
@reem
Copy link
Contributor

reem commented Mar 31, 2015

cc reem/rust-typeable#7

@aturon
Copy link
Member

aturon commented Mar 31, 2015

@bors: r+ f19e763

Manishearth added a commit to Manishearth/rust that referenced this pull request Mar 31, 2015
This commit stabilizes the following APIs:

* `TypeId::of` - now that it has an `Any` bound it's ready to be stable.
* `Box<Any>::downcast` - now that an inherent impl on `Box<Any>` as well as
  `Box<Any+Send>` is allowed the `BoxAny` trait is removed in favor of these
  inherent methods.

This is a breaking change due to the removal of the `BoxAny` trait, but
consumers can simply remove imports to fix crates.

[breaking-change]
alexcrichton added a commit to alexcrichton/rust that referenced this pull request Mar 31, 2015
This commit stabilizes the following APIs:

* `TypeId::of` - now that it has an `Any` bound it's ready to be stable.
* `Box<Any>::downcast` - now that an inherent impl on `Box<Any>` as well as
  `Box<Any+Send>` is allowed the `BoxAny` trait is removed in favor of these
  inherent methods.

This is a breaking change due to the removal of the `BoxAny` trait, but
consumers can simply remove imports to fix crates.

[breaking-change]
@bors bors merged commit f19e763 into rust-lang:master Apr 1, 2015
@alexcrichton alexcrichton deleted the stabilize-any branch April 2, 2015 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants