mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 11:07:42 +00:00
Rollup merge of #129161 - dtolnay:spawnunck, r=Noratrieb
Stabilize std:🧵:Builder::spawn_unchecked Closes #55132.
This commit is contained in:
commit
a9bf86a5f2
@ -1,7 +1,6 @@
|
|||||||
// tidy-alphabetical-start
|
// tidy-alphabetical-start
|
||||||
#![feature(decl_macro)]
|
#![feature(decl_macro)]
|
||||||
#![feature(let_chains)]
|
#![feature(let_chains)]
|
||||||
#![feature(thread_spawn_unchecked)]
|
|
||||||
#![feature(try_blocks)]
|
#![feature(try_blocks)]
|
||||||
// tidy-alphabetical-end
|
// tidy-alphabetical-end
|
||||||
|
|
||||||
|
@ -412,7 +412,6 @@ impl Builder {
|
|||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// #![feature(thread_spawn_unchecked)]
|
|
||||||
/// use std::thread;
|
/// use std::thread;
|
||||||
///
|
///
|
||||||
/// let builder = thread::Builder::new();
|
/// let builder = thread::Builder::new();
|
||||||
@ -433,7 +432,7 @@ impl Builder {
|
|||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// [`io::Result`]: crate::io::Result
|
/// [`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>>
|
pub unsafe fn spawn_unchecked<F, T>(self, f: F) -> io::Result<JoinHandle<T>>
|
||||||
where
|
where
|
||||||
F: FnOnce() -> T,
|
F: FnOnce() -> T,
|
||||||
|
Loading…
Reference in New Issue
Block a user