rust/compiler
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
..
rustc Auto merge of #96737 - ChrisDenton:win-manifest, r=wesleywiser 2022-06-02 07:58:29 +00:00
rustc_apfloat Fully stabilize NLL 2022-06-03 17:16:41 -04:00
rustc_arena mark FIXMES for all the places found that are probably offset_from 2022-03-29 20:18:28 -04:00
rustc_ast Rollup merge of #97856 - compiler-errors:bad-let-suggestions, r=estebank 2022-06-08 13:32:20 -07:00
rustc_ast_lowering Extract lower_generic_and_bounds function 2022-06-07 18:29:07 -03:00
rustc_ast_passes Auto merge of #97512 - scottmcm:add-coldcc, r=nagisa,lcnr 2022-06-07 08:12:45 +00:00
rustc_ast_pretty Revert #96682. 2022-06-02 11:22:16 +10:00
rustc_attr RFC3239: Implement compact cfg(target(..)) 2022-05-24 13:51:36 +02:00
rustc_borrowck Auto merge of #97081 - oli-obk:outlives_query_fast_path, r=jackh726 2022-06-07 21:44:40 +00:00
rustc_builtin_macros Fully stabilize NLL 2022-06-03 17:16:41 -04:00
rustc_codegen_cranelift Auto merge of #97825 - Dylan-DPC:rollup-ya51k1k, r=Dylan-DPC 2022-06-07 11:08:58 +00:00
rustc_codegen_gcc Remove unused macro rule 2022-06-07 08:50:13 -04:00
rustc_codegen_llvm Rollup merge of #97846 - pcwalton:align-bits, r=michaelwoerister 2022-06-08 13:43:19 +02:00
rustc_codegen_ssa Rename rustc_serialize::opaque::Encoder as MemEncoder. 2022-06-08 09:50:44 +10:00
rustc_const_eval Auto merge of #97740 - RalfJung:ctfe-cycle-spans, r=lcnr 2022-06-09 01:52:15 +00:00
rustc_data_structures Rename rustc_serialize::opaque::Encoder as MemEncoder. 2022-06-08 09:50:44 +10:00
rustc_driver Auto merge of #95565 - jackh726:remove-borrowck-mode, r=nikomatsakis 2022-06-07 05:04:14 +00:00
rustc_error_codes Auto merge of #95565 - jackh726:remove-borrowck-mode, r=nikomatsakis 2022-06-07 05:04:14 +00:00
rustc_error_messages migrate check_for_for_in_in_typo diagnostic 2022-05-31 16:28:05 -05:00
rustc_errors Auto merge of #95565 - jackh726:remove-borrowck-mode, r=nikomatsakis 2022-06-07 05:04:14 +00:00
rustc_expand Rollup merge of #95860 - c410-f3r:stabilize-meta, r=joshtriplett 2022-06-09 19:19:55 +09:00
rustc_feature Auto merge of #97512 - scottmcm:add-coldcc, r=nagisa,lcnr 2022-06-07 08:12:45 +00:00
rustc_fs_util
rustc_graphviz Fully stabilize NLL 2022-06-03 17:16:41 -04:00
rustc_hir Don't suggest adding let in certain if conditions 2022-06-07 21:02:58 -07:00
rustc_hir_pretty Compute lifetimes in scope at diagnostic time. 2022-06-04 15:28:15 +02:00
rustc_incremental Rename rustc_serialize::opaque::Encoder as MemEncoder. 2022-06-08 09:50:44 +10:00
rustc_index Auto merge of #97862 - SparrowLii:superset, r=lcnr 2022-06-09 07:13:46 +00:00
rustc_infer rewrite combine doc comment 2022-06-09 10:45:41 +02:00
rustc_interface Fully stabilize NLL 2022-06-03 17:16:41 -04:00
rustc_lexer Reduce max hash in raw strings from u16 to u8 2022-03-23 22:13:55 +01:00
rustc_lint Folding revamp. 2022-06-08 09:24:03 +10:00
rustc_lint_defs Use serde_json for json error messages 2022-06-03 16:46:19 +00:00
rustc_llvm RustWrapper: adapt to APInt API changes in LLVM 15 2022-06-07 14:47:57 -04:00
rustc_log clippy::complexity fixes 2022-05-26 13:14:24 +02:00
rustc_macros Auto merge of #94732 - nnethercote:infallible-encoder, r=bjorn3 2022-06-08 10:24:12 +00:00
rustc_metadata Rename rustc_serialize::opaque::Encoder as MemEncoder. 2022-06-08 09:50:44 +10:00
rustc_middle Auto merge of #97740 - RalfJung:ctfe-cycle-spans, r=lcnr 2022-06-09 01:52:15 +00:00
rustc_mir_build Rollup merge of #97325 - tmiasko:capture-enum-field, r=arora-aman 2022-06-07 17:25:43 +02:00
rustc_mir_dataflow Rollup merge of #97597 - tmiasko:simplify-locals-side-effects, r=RalfJung,JakobDegen 2022-06-08 07:37:30 +02:00
rustc_mir_transform Auto merge of #97740 - RalfJung:ctfe-cycle-spans, r=lcnr 2022-06-09 01:52:15 +00:00
rustc_monomorphize Folding revamp. 2022-06-08 09:24:03 +10:00
rustc_parse Rollup merge of #97857 - ChayimFriedman2:box-identifier-help, r=compiler-errors 2022-06-08 13:32:21 -07:00
rustc_parse_format Make rustc_parse_format compile on stable 2022-05-03 11:26:58 +02:00
rustc_passes Rollup merge of #97301 - semicoleon:unstable-reexport, r=petrochenkov 2022-06-07 11:41:07 +02:00
rustc_plugin_impl Fully stabilize NLL 2022-06-03 17:16:41 -04:00
rustc_privacy Folding revamp. 2022-06-08 09:24:03 +10:00
rustc_query_impl Rename rustc_serialize::opaque::Encoder as MemEncoder. 2022-06-08 09:50:44 +10:00
rustc_query_system Rename rustc_serialize::opaque::Encoder as MemEncoder. 2022-06-08 09:50:44 +10:00
rustc_resolve Don't suggest adding let in certain if conditions 2022-06-07 21:02:58 -07:00
rustc_save_analysis Fully stabilize NLL 2022-06-03 17:16:41 -04:00
rustc_serialize Rename rustc_serialize::opaque::Encoder as MemEncoder. 2022-06-08 09:50:44 +10:00
rustc_session Revert "Remove num_cpus dependency from bootstrap, build-manifest and rustc_session" 2022-06-09 03:10:15 -07:00
rustc_span Rename rustc_serialize::opaque::Encoder as MemEncoder. 2022-06-08 09:50:44 +10:00
rustc_symbol_mangling Fully stabilize NLL 2022-06-03 17:16:41 -04:00
rustc_target Rollup merge of #97843 - overdrivenpotato:psp-lto, r=michaelwoerister 2022-06-09 19:19:56 +09:00
rustc_trait_selection Auto merge of #97860 - Dylan-DPC:rollup-t3vxos8, r=Dylan-DPC 2022-06-08 08:05:47 +00:00
rustc_traits Folding revamp. 2022-06-08 09:24:03 +10:00
rustc_ty_utils Auto merge of #97860 - Dylan-DPC:rollup-t3vxos8, r=Dylan-DPC 2022-06-08 08:05:47 +00:00
rustc_type_ir Rename rustc_serialize::opaque::Encoder as MemEncoder. 2022-06-08 09:50:44 +10:00
rustc_typeck Rollup merge of #97856 - compiler-errors:bad-let-suggestions, r=estebank 2022-06-08 13:32:20 -07:00