Skip to content

Commit

Permalink
Stabilize get_type_id
Browse files Browse the repository at this point in the history
  • Loading branch information
tmccombs committed Apr 3, 2018
1 parent 06fa27d commit 7a6766a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/libcore/any.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ pub trait Any: 'static {
/// # Examples
///
/// ```
/// #![feature(get_type_id)]
///
/// use std::any::{Any, TypeId};
///
Expand All @@ -104,9 +103,7 @@ pub trait Any: 'static {
/// assert_eq!(is_string(&"cookie monster".to_string()), true);
/// }
/// ```
#[unstable(feature = "get_type_id",
reason = "this method will likely be replaced by an associated static",
issue = "27745")]
#[stable(feature = "get_type_id", since = "1.27.0")]
fn get_type_id(&self) -> TypeId;
}

Expand Down

0 comments on commit 7a6766a

Please sign in to comment.