Skip to content

Commit

Permalink
Rollup merge of rust-lang#129161 - dtolnay:spawnunck, r=Noratrieb
Browse files Browse the repository at this point in the history
Stabilize std::thread::Builder::spawn_unchecked

Closes rust-lang#55132.
  • Loading branch information
matthiaskrgr authored Aug 16, 2024
2 parents db3abec + 44a558d commit 9952947
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions std/src/thread/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,6 @@ impl Builder {
/// # Examples
///
/// ```
/// #![feature(thread_spawn_unchecked)]
/// use std::thread;
///
/// let builder = thread::Builder::new();
Expand All @@ -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,
Expand Down

0 comments on commit 9952947

Please sign in to comment.