rust/compiler/rustc_hir_analysis/src
bors e9c965df7b Auto merge of #128812 - nnethercote:shrink-TyKind-FnPtr, r=compiler-errors
Shrink `TyKind::FnPtr`.

By splitting the `FnSig` within `TyKind::FnPtr` into `FnSigTys` and `FnHeader`, which can be packed more efficiently. This reduces the size of the hot `TyKind` type from 32 bytes to 24 bytes on 64-bit platforms. This reduces peak memory usage by a few percent on some benchmarks. It also reduces cache misses and page faults similarly, though this doesn't translate to clear cycles or wall-time improvements on CI.

r? `@compiler-errors`
2024-08-14 00:56:53 +00:00
..
check Auto merge of #128812 - nnethercote:shrink-TyKind-FnPtr, r=compiler-errors 2024-08-14 00:56:53 +00:00
coherence Auto merge of #128812 - nnethercote:shrink-TyKind-FnPtr, r=compiler-errors 2024-08-14 00:56:53 +00:00
collect Rollup merge of #128978 - compiler-errors:assert-matches, r=jieyouxu 2024-08-12 17:09:19 +02:00
errors Reformat use declarations. 2024-07-29 08:26:52 +10:00
hir_ty_lowering Rollup merge of #128424 - fee1-dead-contrib:fx-clean, r=oli-obk 2024-08-07 15:59:35 +02:00
impl_wf_check Reformat use declarations. 2024-07-29 08:26:52 +10:00
outlives Reformat use declarations. 2024-07-29 08:26:52 +10:00
variance Shrink TyKind::FnPtr. 2024-08-09 14:33:25 +10:00
autoderef.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
bounds.rs Add constness to TraitDef 2024-07-03 15:37:34 +00:00
check_unused.rs Remove LintDiagnostic::msg 2024-05-23 04:08:35 +02:00
collect.rs Rollup merge of #128912 - compiler-errors:do-not-recommend-impl, r=lcnr 2024-08-12 23:10:51 +02:00
constrained_generic_params.rs Auto merge of #125076 - compiler-errors:alias-term, r=lcnr 2024-05-13 22:20:43 +00:00
delegation.rs Use assert_matches around the compiler 2024-08-11 12:25:39 -04:00
errors.rs Delegation: support generics for delegation from free functions 2024-07-29 20:04:55 +03:00
hir_wf_check.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
impl_wf_check.rs Use assert_matches around the compiler 2024-08-11 12:25:39 -04:00
lib.rs Use assert_matches around the compiler 2024-08-11 12:25:39 -04:00