File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff 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 " ) ]
15201519pub fn available_parallelism ( ) -> io:: Result < NonZeroUsize > {
15211520 imp:: available_parallelism ( )
15221521}
Original file line number Diff line number Diff line change 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) ]
You can’t perform that action at this time.
0 commit comments