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