rust/src/tools
bors 420c970cb1 Auto merge of #97911 - dtolnay:numcpu, r=Mark-Simulacrum
Revert "remove num_cpus dependency" in rustc and update cargo

Fixes #97549. This PR reverts #94524 and does a Cargo update to pull in rust-lang/cargo#10737.

Rust 1.61.0 has a regression in which it misidentifies the number of available CPUs in some environments, leading to enormously increased memory usage and failing builds. In between Rust 1.60 and 1.61 both rustc and cargo replaced some uses of `num_cpus` with `available_parallelism`, which eliminated support for cgroupv1, still apparently in common use. This PR switches both rustc and cargo back to using `num_cpus` in order to support environments where the available parallelism is controlled by cgroupv1. Both can use `available_parallism` again once it handles cgroupv1 (if ever).

I have confirmed that the rustc part of this PR fixes the memory usage regression in my non-Cargo environment, and others have confirmed in #97549 that the Cargo regression was at fault for the memory usage regression in their environments.
2022-06-09 18:20:08 +00:00
..
build-manifest Revert "Remove num_cpus dependency from bootstrap, build-manifest and rustc_session" 2022-06-09 03:10:15 -07:00
bump-stage0 remove "field is never read" warning 2021-10-23 21:55:57 -04:00
cargo@4d92f07f34 Update cargo 2022-06-09 03:07:25 -07:00
cargotest Bump the ripgrep commit exercised by cargotest 2022-03-26 21:55:19 -07:00
clippy Folding revamp. 2022-06-08 09:24:03 +10:00
compiletest Fix polonius compare mode. 2022-06-08 11:53:16 -07:00
error_index_generator Allow unused rules in some places in the compiler, library and tools 2022-05-05 19:13:00 +02:00
expand-yaml-anchors Migrate to 2021 2021-09-20 22:21:42 -04:00
html-checker Support early stopping too old pre-installed tidy command for macOS in the HTML checker 2021-11-07 10:25:04 +09:00
jsondocck jsondocck: Better error for invalid @count number 2022-03-15 18:34:16 +00:00
linkchecker Also take in account mdbook redirect in linkchecker 2022-03-09 13:45:50 +01:00
lint-docs Minor tweaks to rustc book summary formatting. 2022-05-19 19:08:53 -07:00
lld-wrapper Simplify implementation of -Z gcc-ld 2022-05-25 23:55:22 +03:00
miri@4d6eca1c08 update Miri 2022-06-09 09:16:59 -04:00
remote-test-client Migrate to 2021 2021-09-20 22:21:42 -04:00
remote-test-server Migrate to 2021 2021-09-20 22:21:42 -04:00
rls@7241c6cc45 Bump RLS to latest master 2022-05-18 12:29:35 -04:00
rust-analyzer@ad6810e90b ⬆️ rust-analyzer 2022-06-07 08:52:15 +03:00
rust-demangler mangling_v0: Update tests for the rust-demangler tool 2022-01-08 11:39:34 +08:00
rust-installer@5254dbfd25 bump rust-installer submodule 2020-12-28 12:48:11 +01:00
rustbook Update mdbook 2022-04-15 11:57:06 -07:00
rustc-workspace-hack Add winnt feature to winapi in rustc-workspace-hack 2022-06-06 11:14:59 +02:00
rustdoc Migrate to 2021 2021-09-20 22:21:42 -04:00
rustdoc-gui Update help message for rustdoc-gui runner 2022-06-07 11:49:22 +02:00
rustdoc-js rustdoc: make search.js a module 2022-05-17 09:26:18 -07:00
rustdoc-themes Migrate to 2021 2021-09-20 22:21:42 -04:00
rustfmt Merge crate and restricted visibilities 2022-05-21 17:02:55 -04:00
tidy Fully stabilize NLL 2022-06-03 17:16:41 -04:00
tier-check Migrate to 2021 2021-09-20 22:21:42 -04:00
unicode-table-generator Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
unstable-book-gen Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
x Clarify how src/tools/x searches for python 2022-03-29 13:50:17 -05:00
cherry-pick.sh Add cherry-pick.sh convenience script. 2021-08-20 11:58:18 +01:00
publish_toolstate.py Disable validate_maintainers. 2021-09-15 09:25:06 -07:00