rust/compiler
Josh Triplett 43ee7cd57c Simplify and optimize SlotIndex::from_index
Break out bucket 0 (containing `idx < 4096`) as an early return, which
simplifies the remainder of the function, and allows optimizing the
`checked_ilog2` since it can no longer return `None`.

This reduces the runtime of `vec_cache::tests::slot_index_exhaustive`
(which calls `SlotIndex::from_index` for every `u32`, twice) from ~15.5s
to ~13.3s.
2025-06-05 12:09:00 -07:00
..
rustc
rustc_abi compiler: use CanonAbi for entry_abi 2025-06-03 10:02:44 -07:00
rustc_arena
rustc_ast Rollup merge of #141945 - nnethercote:rm-Path-is_ident, r=compiler-errors 2025-06-03 21:53:38 +02:00
rustc_ast_ir
rustc_ast_lowering Add iter macro 2025-06-03 10:52:32 -07:00
rustc_ast_passes Add iter macro 2025-06-03 10:52:32 -07:00
rustc_ast_pretty Reorder ast::ItemKind::{Struct,Enum,Union} fields. 2025-05-28 15:48:45 +10:00
rustc_attr_data_structures Make #[cfg(version)] respect RUSTC_OVERRIDE_VERSION_STRING 2025-05-24 23:54:17 +02:00
rustc_attr_parsing Add custom trait for emitting lint within cfg_matches 2025-05-26 21:51:09 +02:00
rustc_baked_icu_data
rustc_borrowck Add iter macro 2025-06-03 10:52:32 -07:00
rustc_builtin_macros Rollup merge of #137725 - oli-obk:i-want-to-move-it-move-it, r=compiler-errors,traviscross 2025-06-03 21:53:35 +02:00
rustc_codegen_cranelift Auto merge of #141984 - matthiaskrgr:rollup-wy6j9ca, r=matthiaskrgr 2025-06-03 23:15:53 +00:00
rustc_codegen_gcc Rollup merge of #141569 - workingjubilee:canonicalize-abi, r=bjorn3 2025-06-03 21:53:36 +02:00
rustc_codegen_llvm Rollup merge of #141250 - folkertdev:s390x-z17-target-features, r=workingjubilee 2025-06-04 07:54:33 +02:00
rustc_codegen_ssa Rollup merge of #141569 - workingjubilee:canonicalize-abi, r=bjorn3 2025-06-03 21:53:36 +02:00
rustc_const_eval Rollup merge of #141698 - oli-obk:ctfe-err-flip, r=RalfJung 2025-06-03 21:53:37 +02:00
rustc_data_structures Simplify and optimize SlotIndex::from_index 2025-06-05 12:09:00 -07:00
rustc_driver
rustc_driver_impl Rollup merge of #141072 - Rynibami:stabilize-const-result-flatten, r=jhpratt 2025-06-01 00:35:50 +02:00
rustc_error_codes Stabilise repr128 2025-05-28 15:14:34 +01:00
rustc_error_messages bump fluent-* crates 2025-05-27 14:11:14 +03:00
rustc_errors Remove an unnecessary use of Box::into_inner. 2025-05-27 02:06:40 +10:00
rustc_expand Rollup merge of #141430 - fee1-dead-contrib:push-nmzoprvtsvww, r=petrochenkov 2025-05-30 07:01:29 +02:00
rustc_feature Stabilise repr128 2025-05-28 15:14:34 +01:00
rustc_fluent_macro bump fluent-* crates 2025-05-27 14:11:14 +03:00
rustc_fs_util Retry if creating temp fails with access denied 2025-04-25 11:28:36 +00:00
rustc_graphviz
rustc_hashes
rustc_hir Rollup merge of #137725 - oli-obk:i-want-to-move-it-move-it, r=compiler-errors,traviscross 2025-06-03 21:53:35 +02:00
rustc_hir_analysis Auto merge of #139118 - scottmcm:slice-get-unchecked-intrinsic, r=workingjubilee 2025-05-31 21:38:21 +00:00
rustc_hir_pretty Reorder hir fn stuff. 2025-05-30 02:28:35 +10:00
rustc_hir_typeck Add iter macro 2025-06-03 10:52:32 -07:00
rustc_incremental Auto merge of #139758 - Zoxc:thread-local-graph, r=oli-obk 2025-05-07 12:39:54 +00:00
rustc_index index: add method for checking range on DenseBitSet 2025-06-04 00:47:12 +02:00
rustc_index_macros
rustc_infer Auto merge of #141581 - lcnr:fold-clauses, r=compiler-errors 2025-05-29 02:29:01 +00:00
rustc_interface Rollup merge of #141943 - nnethercote:rm-pre-expansion-ast-stats, r=compiler-errors 2025-06-03 21:53:38 +02:00
rustc_lexer Implement RFC 3503: frontmatters 2025-05-05 23:10:08 +08:00
rustc_lint Rollup merge of #137306 - tgross35:remove-i128-u128-improper-ctypes, r=traviscross,workingjubilee 2025-06-04 07:54:31 +02:00
rustc_lint_defs decouple "reporting in deps" from future incompatibility reason 2025-06-03 10:49:22 +02:00
rustc_llvm rustc_llvm: add Windows system libs only when cross-compiling from Windows 2025-05-31 15:47:14 +02:00
rustc_log Allow linking rustc and rustdoc against the same single tracing crate 2025-05-03 10:18:50 -07:00
rustc_macros Allow trailing comma after argument in query definition 2025-05-20 10:22:08 +00:00
rustc_metadata Auto merge of #141730 - osiewicz:collect-crate-deps-postorder-use-indexset, r=nnethercote 2025-06-01 07:40:52 +00:00
rustc_middle Auto merge of #141961 - matthiaskrgr:rollup-r09j2sp, r=matthiaskrgr 2025-06-03 16:31:44 +00:00
rustc_mir_build Rollup merge of #141741 - nnethercote:overhaul-UsePath, r=petrochenkov 2025-06-03 07:03:43 +02:00
rustc_mir_dataflow update cfg(bootstrap) 2025-05-12 15:33:37 +02:00
rustc_mir_transform Rollup merge of #141677 - azhogin:azhogin/async-drop-unexpected-type-instead-of-drop-fn-fix, r=oli-obk 2025-06-03 07:03:43 +02:00
rustc_monomorphize Rollup merge of #141569 - workingjubilee:canonicalize-abi, r=bjorn3 2025-06-03 21:53:36 +02:00
rustc_next_trait_solver Auto merge of #141731 - compiler-errors:tweak-fast-path-trait, r=lcnr 2025-06-01 10:59:38 +00:00
rustc_parse Rollup merge of #141945 - nnethercote:rm-Path-is_ident, r=compiler-errors 2025-06-03 21:53:38 +02:00
rustc_parse_format Remove duplicate impl of string unescape 2025-05-06 10:00:22 +00:00
rustc_passes Rollup merge of #141741 - nnethercote:overhaul-UsePath, r=petrochenkov 2025-06-03 07:03:43 +02:00
rustc_pattern_analysis Use builin_index instead of hand-rolling it 2025-05-28 10:03:01 +00:00
rustc_privacy Reorder fields in hir::ItemKind variants. 2025-05-30 02:23:20 +10:00
rustc_proc_macro Do not get proc_macro from the sysroot in rustc 2025-05-27 15:49:28 +00:00
rustc_query_impl Auto merge of #140145 - Zoxc:job-server-proxy, r=SparrowLii 2025-05-01 04:11:52 +00:00
rustc_query_system Handle rustc_query_system cases of rustc::potential_query_instability lint 2025-05-14 08:59:55 +03:00
rustc_resolve Auto merge of #141954 - matthiaskrgr:rollup-zptd6t9, r=matthiaskrgr 2025-06-03 09:51:59 +00:00
rustc_sanitizers Rollup merge of #141569 - workingjubilee:canonicalize-abi, r=bjorn3 2025-06-03 21:53:36 +02:00
rustc_serialize Zero the buffer passed from write_with 2025-04-25 07:14:27 +02:00
rustc_session Rollup merge of #141865 - Nadrieril:dont-steal-thir, r=oli-obk 2025-06-02 15:19:19 +02:00
rustc_smir Rollup merge of #141569 - workingjubilee:canonicalize-abi, r=bjorn3 2025-06-03 21:53:36 +02:00
rustc_span Rollup merge of #141874 - usamoi:eps, r=tgross35 2025-06-02 15:19:19 +02:00
rustc_symbol_mangling Rename unpack to kind 2025-05-27 11:14:45 +00:00
rustc_target Rollup merge of #141250 - folkertdev:s390x-z17-target-features, r=workingjubilee 2025-06-04 07:54:33 +02:00
rustc_trait_selection Add iter macro 2025-06-03 10:52:32 -07:00
rustc_traits Querify coroutine_hidden_types 2025-05-20 11:50:25 +00:00
rustc_transmute Rollup merge of #140509 - tmiasko:merge-contiguous-ranges, r=jswrenn 2025-05-02 19:37:56 +02:00
rustc_ty_utils Rollup merge of #141569 - workingjubilee:canonicalize-abi, r=bjorn3 2025-06-03 21:53:36 +02:00
rustc_type_ir Rework collect_and_apply to not rely on size hint for optimization 2025-06-03 17:29:08 +00:00
rustc_type_ir_macros
stable_mir Change rustc_driver dependency on stable_mir crate 2025-04-30 15:39:52 -07:00