@@ -825,8 +825,6 @@ pub fn park_timeout(dur: Duration) {
825825/// # Examples
826826///
827827/// ```
828- /// #![feature(thread_id)]
829- ///
830828/// use std::thread;
831829///
832830/// let other_thread = thread::spawn(|| {
@@ -836,7 +834,7 @@ pub fn park_timeout(dur: Duration) {
836834/// let other_thread_id = other_thread.join().unwrap();
837835/// assert!(thread::current().id() != other_thread_id);
838836/// ```
839- #[ unstable ( feature = "thread_id" , issue = "21507 " ) ]
837+ #[ stable ( feature = "thread_id" , since = "1.19.0 " ) ]
840838#[ derive( Eq , PartialEq , Clone , Copy , Hash , Debug ) ]
841839pub struct ThreadId ( u64 ) ;
842840
@@ -966,8 +964,6 @@ impl Thread {
966964 /// # Examples
967965 ///
968966 /// ```
969- /// #![feature(thread_id)]
970- ///
971967 /// use std::thread;
972968 ///
973969 /// let other_thread = thread::spawn(|| {
@@ -977,7 +973,7 @@ impl Thread {
977973 /// let other_thread_id = other_thread.join().unwrap();
978974 /// assert!(thread::current().id() != other_thread_id);
979975 /// ```
980- #[ unstable ( feature = "thread_id" , issue = "21507 " ) ]
976+ #[ stable ( feature = "thread_id" , since = "1.19.0 " ) ]
981977 pub fn id ( & self ) -> ThreadId {
982978 self . inner . id
983979 }
@@ -1168,8 +1164,6 @@ impl<T> JoinHandle<T> {
11681164 /// # Examples
11691165 ///
11701166 /// ```
1171- /// #![feature(thread_id)]
1172- ///
11731167 /// use std::thread;
11741168 ///
11751169 /// let builder = thread::Builder::new();
0 commit comments