File tree 2 files changed +1
-3
lines changed
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() {
1504
1504
///
1505
1505
/// ```
1506
1506
/// # #![allow(dead_code)]
1507
- /// #![feature(available_parallelism)]
1508
1507
/// use std::{io, thread};
1509
1508
///
1510
1509
/// fn main() -> io::Result<()> {
@@ -1516,7 +1515,7 @@ fn _assert_sync_and_send() {
1516
1515
#[ doc( alias = "available_concurrency" ) ] // Alias for a previous name we gave this API on unstable.
1517
1516
#[ doc( alias = "hardware_concurrency" ) ] // Alias for C++ `std::thread::hardware_concurrency`.
1518
1517
#[ 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 " ) ]
1520
1519
pub fn available_parallelism ( ) -> io:: Result < NonZeroUsize > {
1521
1520
imp:: available_parallelism ( )
1522
1521
}
Original file line number Diff line number Diff line change 16
16
#![ unstable( feature = "test" , issue = "50297" ) ]
17
17
#![ doc( test( attr( deny( warnings) ) ) ) ]
18
18
#![ feature( nll) ]
19
- #![ feature( available_parallelism) ]
20
19
#![ feature( bench_black_box) ]
21
20
#![ feature( internal_output_capture) ]
22
21
#![ feature( staged_api) ]
You can’t perform that action at this time.
0 commit comments