rust/compiler
bors 68acb393c5 Auto merge of #119791 - Mark-Simulacrum:cut-leb128, r=cjgillot
Remove a large amount of leb128-coded integers

This removes ~41%[^1] of the leb128-encoded integers serialized during libcore compilation by changing enum tags to opportunistically use `u8` where feasible instead of the leb128 coding via `usize`.

This should have effectively zero impact on metadata file sizes, since almost all or all enum tags fit into the 7 bits available in leb128 for single-byte encodings. Perf results indicate this is basically neutral across the board except for an improvement in bootstrap time.

[^1]: More than half the remaining integers still fit into <= 128, so the leb128 coding still makes sense. 32% are zero, and 46% are <= 4.
2024-01-11 13:11:57 +00:00
..
rustc Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_abi Avoid specialization for the Span Encodable and Decodable impls 2023-12-31 20:42:17 +00:00
rustc_arena rustc_arena: add alloc_str 2023-12-05 17:52:51 -08:00
rustc_ast Auto merge of #119478 - bjorn3:no_serialize_specialization, r=wesleywiser 2024-01-06 09:56:00 +00:00
rustc_ast_lowering Add error code for missing base expression in struct update syntax 2024-01-09 19:25:54 +00:00
rustc_ast_passes Rename consuming chaining methods on DiagnosticBuilder. 2024-01-10 07:40:00 +11:00
rustc_ast_pretty Auto merge of #119105 - dtolnay:paren, r=WaffleLapkin 2023-12-27 21:27:26 +00:00
rustc_attr Rename consuming chaining methods on DiagnosticBuilder. 2024-01-10 07:40:00 +11:00
rustc_baked_icu_data Bump cfg(bootstrap)s 2023-11-15 19:41:28 -05:00
rustc_borrowck Rollup merge of #118915 - compiler-errors:alias-nits, r=lcnr 2024-01-11 03:02:39 +01:00
rustc_builtin_macros Change how force-warn lint diagnostics are recorded. 2024-01-11 07:56:17 +11:00
rustc_codegen_cranelift Rollup merge of #117556 - obeis:static-mut-ref-lint, r=davidtwco 2024-01-09 13:23:15 +01:00
rustc_codegen_gcc Rename {create,emit}_warning as {create,emit}_warn. 2024-01-10 07:33:06 +11:00
rustc_codegen_llvm Change how force-warn lint diagnostics are recorded. 2024-01-11 07:56:17 +11:00
rustc_codegen_ssa Change how force-warn lint diagnostics are recorded. 2024-01-11 07:56:17 +11:00
rustc_const_eval Add DiagCtxt::delayed_bug. 2024-01-10 07:33:07 +11:00
rustc_data_structures Rollup merge of #119527 - klensy:ordering, r=compiler-errors 2024-01-09 13:23:17 +01:00
rustc_driver Bump cfg(bootstrap)s 2023-11-15 19:41:28 -05:00
rustc_driver_impl Rename {create,emit}_warning as {create,emit}_warn. 2024-01-10 07:33:06 +11:00
rustc_error_codes Add error code for missing base expression in struct update syntax 2024-01-09 19:25:54 +00:00
rustc_error_messages Remove rustc_error_messages/messages.ftl. 2023-11-26 08:37:27 +11:00
rustc_errors Simplify lint error counting. 2024-01-11 07:56:20 +11:00
rustc_expand Change how force-warn lint diagnostics are recorded. 2024-01-11 07:56:17 +11:00
rustc_feature Rollup merge of #119354 - fmease:negative_bounds-fixes, r=compiler-errors 2024-01-05 20:39:51 +01:00
rustc_fluent_macro Add a useful comment. 2023-11-26 08:38:02 +11:00
rustc_fs_util Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
rustc_graphviz remove unused pub fn 2023-11-23 14:11:02 +03:00
rustc_hir Turn some free functions into methods 2024-01-10 08:52:44 +00:00
rustc_hir_analysis Rollup merge of #119803 - oli-obk:even_more_follow_up_errors, r=compiler-errors 2024-01-11 03:02:43 +01:00
rustc_hir_pretty Remove hir::Guard 2024-01-05 10:56:59 +00:00
rustc_hir_typeck Rollup merge of #119803 - oli-obk:even_more_follow_up_errors, r=compiler-errors 2024-01-11 03:02:43 +01:00
rustc_incremental Rename {create,emit}_warning as {create,emit}_warn. 2024-01-10 07:33:06 +11:00
rustc_index Auto merge of #119499 - cjgillot:dtm-opt, r=nnethercote 2024-01-06 11:54:15 +00:00
rustc_index_macros Put backticks around some attributes in doc comments. 2023-11-27 09:37:01 +11:00
rustc_infer Rollup merge of #118915 - compiler-errors:alias-nits, r=lcnr 2024-01-11 03:02:39 +01:00
rustc_interface Rename TRACK_DIAGNOSTICS as TRACK_DIAGNOSTIC. 2024-01-11 07:55:03 +11:00
rustc_lexer Rename some unescaping functions. 2023-12-13 14:17:50 +11:00
rustc_lint Simplify some redundant names 2024-01-10 16:29:23 +00:00
rustc_lint_defs Rollup merge of #117556 - obeis:static-mut-ref-lint, r=davidtwco 2024-01-09 13:23:15 +01:00
rustc_llvm Pass LLVM error message back to pass wrapper. 2024-01-05 15:59:11 -05:00
rustc_log rustc_log: provide a way to init logging based on the values, not names, of the env vars 2023-11-11 15:24:33 +01:00
rustc_macros u8 tags for smaller enums 2024-01-09 20:08:44 -05:00
rustc_metadata Auto merge of #119478 - bjorn3:no_serialize_specialization, r=wesleywiser 2024-01-06 09:56:00 +00:00
rustc_middle Rollup merge of #119763 - nnethercote:cleanup-Diagnostic, r=oli-obk 2024-01-11 03:02:41 +01:00
rustc_mir_build Rollup merge of #119715 - Nadrieril:graceful-type-error, r=compiler-errors 2024-01-11 03:02:41 +01:00
rustc_mir_dataflow Remove movability from TyKind::Coroutine 2023-12-28 16:35:01 +00:00
rustc_mir_transform Auto merge of #119677 - cjgillot:early-cfg-opt, r=oli-obk 2024-01-11 04:09:07 +00:00
rustc_monomorphize Stop mentioning internal lang items in no_std binary errors 2024-01-10 21:18:54 +01:00
rustc_next_trait_solver Remove movability from TyKind::Coroutine 2023-12-28 16:35:01 +00:00
rustc_parse Rename consuming chaining methods on DiagnosticBuilder. 2024-01-10 07:40:00 +11:00
rustc_parse_format Removing redudant note from parse error 2024-01-08 19:41:01 +01:00
rustc_passes Stop mentioning internal lang items in no_std binary errors 2024-01-10 21:18:54 +01:00
rustc_pattern_analysis Auto merge of #119837 - matthiaskrgr:rollup-l2olpad, r=matthiaskrgr 2024-01-11 02:10:34 +00:00
rustc_privacy Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
rustc_query_impl Rollup merge of #119527 - klensy:ordering, r=compiler-errors 2024-01-09 13:23:17 +01:00
rustc_query_system Add DiagCtxt::delayed_bug. 2024-01-10 07:33:07 +11:00
rustc_resolve Rollup merge of #119788 - mj10021:issue-119787-fix, r=oli-obk 2024-01-11 03:02:42 +01:00
rustc_serialize Remove more needless leb128 coding for enum variants 2024-01-09 20:08:44 -05:00
rustc_session Change how force-warn lint diagnostics are recorded. 2024-01-11 07:56:17 +11:00
rustc_smir Rollup merge of #119790 - celinval:smir-all-traits, r=oli-obk 2024-01-11 03:02:42 +01:00
rustc_span Remove more needless leb128 coding for enum variants 2024-01-09 20:08:44 -05:00
rustc_symbol_mangling Rename consuming chaining methods on DiagnosticBuilder. 2024-01-10 07:40:00 +11:00
rustc_target Remove more needless leb128 coding for enum variants 2024-01-09 20:08:44 -05:00
rustc_trait_selection Rollup merge of #118915 - compiler-errors:alias-nits, r=lcnr 2024-01-11 03:02:39 +01:00
rustc_traits add unused NormalizesTo predicate 2023-12-07 17:52:51 +01:00
rustc_transmute Fix an ICE that occurs after an error has already been reported 2024-01-09 16:09:30 +00:00
rustc_ty_utils Add DiagCtxt::delayed_bug. 2024-01-10 07:33:07 +11:00
rustc_type_ir Fix tidy error 2023-12-31 20:58:36 +00:00
stable_mir Fix all_trait* methods to return all trait available 2024-01-09 15:45:03 -08:00