Skip to content

Commit 9952947

Browse files
authored
Rollup merge of rust-lang#129161 - dtolnay:spawnunck, r=Noratrieb
Stabilize std::thread::Builder::spawn_unchecked Closes rust-lang#55132.
2 parents db3abec + 44a558d commit 9952947

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: std/src/thread/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,6 @@ impl Builder {
412412
/// # Examples
413413
///
414414
/// ```
415-
/// #![feature(thread_spawn_unchecked)]
416415
/// use std::thread;
417416
///
418417
/// let builder = thread::Builder::new();
@@ -433,7 +432,7 @@ impl Builder {
433432
/// ```
434433
///
435434
/// [`io::Result`]: crate::io::Result
436-
#[unstable(feature = "thread_spawn_unchecked", issue = "55132")]
435+
#[stable(feature = "thread_spawn_unchecked", since = "CURRENT_RUSTC_VERSION")]
437436
pub unsafe fn spawn_unchecked<F, T>(self, f: F) -> io::Result<JoinHandle<T>>
438437
where
439438
F: FnOnce() -> T,

0 commit comments

Comments
 (0)