From 44a558dc7dc0baac7d3fda2b894cf1e8a366bf35 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Fri, 16 Aug 2024 10:43:34 -0700 Subject: [PATCH] Stabilize std::thread::Builder::spawn_unchecked --- std/src/thread/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/std/src/thread/mod.rs b/std/src/thread/mod.rs index 88b31cd78a661..e29c28f3c7ec2 100644 --- a/std/src/thread/mod.rs +++ b/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(self, f: F) -> io::Result> where F: FnOnce() -> T,