Skip to content

Commit a9bf86a

Browse files
authored
Rollup merge of #129161 - dtolnay:spawnunck, r=Noratrieb
Stabilize std::thread::Builder::spawn_unchecked Closes #55132.
2 parents 5bceee4 + e6ac503 commit a9bf86a

File tree

2 files changed

+1
-3
lines changed
  • compiler/rustc_interface/src
  • library/std/src/thread

2 files changed

+1
-3
lines changed

Diff for: compiler/rustc_interface/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// tidy-alphabetical-start
22
#![feature(decl_macro)]
33
#![feature(let_chains)]
4-
#![feature(thread_spawn_unchecked)]
54
#![feature(try_blocks)]
65
// tidy-alphabetical-end
76

Diff for: library/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)