Skip to content

Commit 7a6766a

Browse files
committed
Stabilize get_type_id
Fixes rust-lang#27745
1 parent 06fa27d commit 7a6766a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/libcore/any.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ pub trait Any: 'static {
9191
/// # Examples
9292
///
9393
/// ```
94-
/// #![feature(get_type_id)]
9594
///
9695
/// use std::any::{Any, TypeId};
9796
///
@@ -104,9 +103,7 @@ pub trait Any: 'static {
104103
/// assert_eq!(is_string(&"cookie monster".to_string()), true);
105104
/// }
106105
/// ```
107-
#[unstable(feature = "get_type_id",
108-
reason = "this method will likely be replaced by an associated static",
109-
issue = "27745")]
106+
#[stable(feature = "get_type_id", since = "1.27.0")]
110107
fn get_type_id(&self) -> TypeId;
111108
}
112109

0 commit comments

Comments
 (0)