Skip to content

Commit

Permalink
Auto merge of #58048 - SimonSapin:error_type_id, r=Centril
Browse files Browse the repository at this point in the history
Stabilize std::error::Error::type_id

This should have been part of #57834

FCP: #27745 (comment)
  • Loading branch information
bors committed Feb 2, 2019
2 parents 4af96ae + cc1e05f commit 3d35a9b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/libstd/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,7 @@ pub trait Error: Debug + Display {

/// Get the `TypeId` of `self`
#[doc(hidden)]
#[unstable(feature = "error_type_id",
reason = "unclear whether to commit to this public implementation detail",
issue = "27745")]
#[stable(feature = "error_type_id", since = "1.34.0")]
fn type_id(&self) -> TypeId where Self: 'static {
TypeId::of::<Self>()
}
Expand Down

0 comments on commit 3d35a9b

Please sign in to comment.