about summary refs log tree commit diff
path: root/library/std/src/thread/mod.rs
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@gmail.com>2024-08-16 10:43:34 -0700
committerDavid Tolnay <dtolnay@gmail.com>2024-08-16 10:43:47 -0700
commite6ac503ec19c6c356cfbb9b5f47aee1af4ce5626 (patch)
tree5d0dc0975409e063819bae4483fe9bacb902db72 /library/std/src/thread/mod.rs
parenta73bc4a131d94eba633c4c572a28e0bf94a67530 (diff)
downloadrust-e6ac503ec19c6c356cfbb9b5f47aee1af4ce5626.tar.gz
rust-e6ac503ec19c6c356cfbb9b5f47aee1af4ce5626.zip
Stabilize std::thread::Builder::spawn_unchecked
Diffstat (limited to 'library/std/src/thread/mod.rs')
-rw-r--r--library/std/src/thread/mod.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/library/std/src/thread/mod.rs b/library/std/src/thread/mod.rs
index 88b31cd78a6..e29c28f3c7e 100644
--- a/library/std/src/thread/mod.rs
+++ b/library/std/src/thread/mod.rs
@@ -412,7 +412,6 @@ impl Builder {
     /// # Examples
     ///
     /// ```
-    /// #![feature(thread_spawn_unchecked)]
     /// use std::thread;
     ///
     /// let builder = thread::Builder::new();
@@ -433,7 +432,7 @@ impl Builder {
     /// ```
     ///
     /// [`io::Result`]: crate::io::Result
-    #[unstable(feature = "thread_spawn_unchecked", issue = "55132")]
+    #[stable(feature = "thread_spawn_unchecked", since = "CURRENT_RUSTC_VERSION")]
     pub unsafe fn spawn_unchecked<F, T>(self, f: F) -> io::Result<JoinHandle<T>>
     where
         F: FnOnce() -> T,