]> git.lizzy.rs Git - rust.git/blobdiff - library/test/src/helpers/concurrency.rs
Rollup merge of #89579 - workingjubilee:regression-test-80108, r=Mark-Simulacrum
[rust.git] / library / test / src / helpers / concurrency.rs
index c39a9b0ec02335ca450974b9c225d7a387a50d5a..e25f524ec05667f52fa58a7c06d0c5ff99b11cdc 100644 (file)
@@ -9,6 +9,6 @@ pub fn get_concurrency() -> usize {
             _ => panic!("RUST_TEST_THREADS is `{}`, should be a positive integer.", value),
         }
     } else {
-        thread::available_concurrency().map(|n| n.get()).unwrap_or(1)
+        thread::available_parallelism().map(|n| n.get()).unwrap_or(1)
     }
 }