]> git.proxmox.com Git - rustc.git/blobdiff - library/test/src/helpers/concurrency.rs
New upstream version 1.57.0+dfsg1
[rustc.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)
     }
 }