Skip to content

Commit 1001068

Browse files
authored
Rollup merge of #92632 - yoshuawuyts:stabilize-available-parallelism, r=joshtriplett
Implement stabilization of `#[feature(available_parallelism)]` Stabilized in #74479 (comment). Closes #74479. Thanks! cc/ ``@rust-lang/libs-api``
2 parents 759b13e + 3632f41 commit 1001068

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

library/std/src/thread/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1504,7 +1504,6 @@ fn _assert_sync_and_send() {
15041504
///
15051505
/// ```
15061506
/// # #![allow(dead_code)]
1507-
/// #![feature(available_parallelism)]
15081507
/// use std::{io, thread};
15091508
///
15101509
/// fn main() -> io::Result<()> {
@@ -1516,7 +1515,7 @@ fn _assert_sync_and_send() {
15161515
#[doc(alias = "available_concurrency")] // Alias for a previous name we gave this API on unstable.
15171516
#[doc(alias = "hardware_concurrency")] // Alias for C++ `std::thread::hardware_concurrency`.
15181517
#[doc(alias = "num_cpus")] // Alias for a popular ecosystem crate which provides similar functionality.
1519-
#[unstable(feature = "available_parallelism", issue = "74479")]
1518+
#[stable(feature = "available_parallelism", since = "1.59.0")]
15201519
pub fn available_parallelism() -> io::Result<NonZeroUsize> {
15211520
imp::available_parallelism()
15221521
}

library/test/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#![unstable(feature = "test", issue = "50297")]
1717
#![doc(test(attr(deny(warnings))))]
1818
#![feature(nll)]
19-
#![feature(available_parallelism)]
2019
#![feature(bench_black_box)]
2120
#![feature(internal_output_capture)]
2221
#![feature(staged_api)]

0 commit comments

Comments
 (0)