@@ -825,8 +825,6 @@ pub fn park_timeout(dur: Duration) {
825
825
/// # Examples
826
826
///
827
827
/// ```
828
- /// #![feature(thread_id)]
829
- ///
830
828
/// use std::thread;
831
829
///
832
830
/// let other_thread = thread::spawn(|| {
@@ -836,7 +834,7 @@ pub fn park_timeout(dur: Duration) {
836
834
/// let other_thread_id = other_thread.join().unwrap();
837
835
/// assert!(thread::current().id() != other_thread_id);
838
836
/// ```
839
- #[ unstable ( feature = "thread_id" , issue = "21507 " ) ]
837
+ #[ stable ( feature = "thread_id" , since = "1.19.0 " ) ]
840
838
#[ derive( Eq , PartialEq , Clone , Copy , Hash , Debug ) ]
841
839
pub struct ThreadId ( u64 ) ;
842
840
@@ -966,8 +964,6 @@ impl Thread {
966
964
/// # Examples
967
965
///
968
966
/// ```
969
- /// #![feature(thread_id)]
970
- ///
971
967
/// use std::thread;
972
968
///
973
969
/// let other_thread = thread::spawn(|| {
@@ -977,7 +973,7 @@ impl Thread {
977
973
/// let other_thread_id = other_thread.join().unwrap();
978
974
/// assert!(thread::current().id() != other_thread_id);
979
975
/// ```
980
- #[ unstable ( feature = "thread_id" , issue = "21507 " ) ]
976
+ #[ stable ( feature = "thread_id" , since = "1.19.0 " ) ]
981
977
pub fn id ( & self ) -> ThreadId {
982
978
self . inner . id
983
979
}
@@ -1168,8 +1164,6 @@ impl<T> JoinHandle<T> {
1168
1164
/// # Examples
1169
1165
///
1170
1166
/// ```
1171
- /// #![feature(thread_id)]
1172
- ///
1173
1167
/// use std::thread;
1174
1168
///
1175
1169
/// let builder = thread::Builder::new();
0 commit comments