rust/compiler
Matthias Krüger e696f5c180
Rollup merge of #134323 - Zalathar:dismantle-map-data, r=jieyouxu
coverage: Dismantle `map_data.rs` by moving its responsibilities elsewhere

This is a series of incremental changes that combine to let us get rid of `coverageinfo/map_data.rs`, by moving all of its responsibilities into more appropriate places.

Some of the notable consequences are:

- We once again build the per-CGU file table on the fly while preparing individual covfun records, instead of building the whole table up-front. The up-front approach was introduced by #117042 to work around various other problems in generating the covmap/covfun records, but subsequent cleanups have made that approach no longer necessary.
- Expression conversion and mapping-region conversion are now performed directly in `mapgen::covfun`, which should make future changes easier.
- We no longer insert unused function instances into the same map that is also used to track used function instances. This helps to decouple the handling of used vs unused functions.

---

There should be no meaningful change to compiler output. The file table is no longer sorted, because reordering it would invalidate the file indices stored in individual covfun records, but the table order should still be deterministic (albeit arbitrary).

There are some subsequent cleanups that I intend to investigate, but this is enough change for one PR.
2024-12-17 22:34:42 +01:00
..
rustc switch jemalloc-sys back to tikv-jemalloc-sys, and update to 0.6.0 2024-12-03 08:56:33 +00:00
rustc_abi fix safe-transmute handling of enums 2024-12-01 18:28:04 +01:00
rustc_arena move strict provenance lints to new feature gate, remove old feature gates 2024-10-21 15:22:17 +01:00
rustc_ast Rollup merge of #134284 - estebank:issue-74863, r=lcnr 2024-12-16 20:00:22 +01:00
rustc_ast_ir Add sugar for &pin (const|mut) types 2024-10-07 11:15:04 -07:00
rustc_ast_lowering Rollup merge of #134284 - estebank:issue-74863, r=lcnr 2024-12-16 20:00:22 +01:00
rustc_ast_passes rename rustc_attr to rustc_attr_parsing and create rustc_attr_data_structures 2024-12-16 19:08:19 +01:00
rustc_ast_pretty Rollup merge of #134284 - estebank:issue-74863, r=lcnr 2024-12-16 20:00:22 +01:00
rustc_attr_data_structures rename rustc_attr to rustc_attr_parsing and create rustc_attr_data_structures 2024-12-16 19:08:19 +01:00
rustc_attr_parsing rename rustc_attr to rustc_attr_parsing and create rustc_attr_data_structures 2024-12-16 19:08:19 +01:00
rustc_baked_icu_data Delete the cfg(not(parallel)) serial compiler 2024-11-12 13:38:58 +00:00
rustc_borrowck Rollup merge of #134412 - lcnr:borrowck-cleanup-trivial, r=jackh726 2024-12-17 05:37:36 -05:00
rustc_builtin_macros rename rustc_attr to rustc_attr_parsing and create rustc_attr_data_structures 2024-12-16 19:08:19 +01:00
rustc_codegen_cranelift Rollup merge of #134251 - bjorn3:various_cleanups2, r=oli-obk 2024-12-14 03:54:35 +01:00
rustc_codegen_gcc rename rustc_attr to rustc_attr_parsing and create rustc_attr_data_structures 2024-12-16 19:08:19 +01:00
rustc_codegen_llvm Rollup merge of #134323 - Zalathar:dismantle-map-data, r=jieyouxu 2024-12-17 22:34:42 +01:00
rustc_codegen_ssa rename rustc_attr to rustc_attr_parsing and create rustc_attr_data_structures 2024-12-16 19:08:19 +01:00
rustc_const_eval rename rustc_attr to rustc_attr_parsing and create rustc_attr_data_structures 2024-12-16 19:08:19 +01:00
rustc_data_structures Remove jobserver from Session 2024-12-13 10:21:22 +00:00
rustc_driver Use tidy to sort crate attributes for all compiler crates. 2024-06-12 15:49:10 +10:00
rustc_driver_impl Auto merge of #134381 - jdonszelmann:move-attribute-types, r=oli-obk 2024-12-17 18:50:50 +00:00
rustc_error_codes Auto merge of #132706 - compiler-errors:async-closures, r=oli-obk 2024-12-13 00:37:51 +00:00
rustc_error_messages Delete the cfg(not(parallel)) serial compiler 2024-11-12 13:38:58 +00:00
rustc_errors update uses of extract_if in the compiler 2024-12-16 22:06:52 +01:00
rustc_expand rename rustc_attr to rustc_attr_parsing and create rustc_attr_data_structures 2024-12-16 19:08:19 +01:00
rustc_feature Stabilize #[coverage] attribute 2024-12-16 21:07:06 -05:00
rustc_fluent_macro use tracked_path in rustc_fluent_macro 2024-10-19 22:32:38 +08:00
rustc_fs_util Couple of changes to make it easier to compile rustc for wasm 2024-09-26 19:51:14 +00:00
rustc_graphviz Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_hir Add hir::Attribute 2024-12-15 19:18:46 +01:00
rustc_hir_analysis rename rustc_attr to rustc_attr_parsing and create rustc_attr_data_structures 2024-12-16 19:08:19 +01:00
rustc_hir_pretty Remove some leftover dead code 2024-12-15 19:18:46 +01:00
rustc_hir_typeck Auto merge of #134381 - jdonszelmann:move-attribute-types, r=oli-obk 2024-12-17 18:50:50 +00:00
rustc_incremental Add hir::Attribute 2024-12-15 19:18:46 +01:00
rustc_index Use BitSet in SparseBitMatrix. 2024-12-09 08:53:33 +11:00
rustc_index_macros Auto merge of #130867 - michirakara:steps_between, r=dtolnay 2024-11-22 10:54:22 +00:00
rustc_infer fn member_constraint to add_member_constraint 2024-12-17 09:00:29 +01:00
rustc_interface Auto merge of #134381 - jdonszelmann:move-attribute-types, r=oli-obk 2024-12-17 18:50:50 +00:00
rustc_lexer Add test to check unicode identifier version 2024-12-09 06:23:59 -08:00
rustc_lint Rollup merge of #133265 - the8472:extract-if-ranges, r=cuviper 2024-12-17 22:34:40 +01:00
rustc_lint_defs Use links to edition guide for edition migrations 2024-12-15 20:28:16 -08:00
rustc_llvm Auto merge of #129181 - beetrees:asm-spans, r=pnkfelix,compiler-errors 2024-12-12 02:34:06 +00:00
rustc_log Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_macros give a better error for tuple structs in derive(Diagnostic) 2024-10-27 21:23:28 -04:00
rustc_metadata Rollup merge of #133265 - the8472:extract-if-ranges, r=cuviper 2024-12-17 22:34:40 +01:00
rustc_middle Rollup merge of #133265 - the8472:extract-if-ranges, r=cuviper 2024-12-17 22:34:40 +01:00
rustc_mir_build Rollup merge of #134400 - spastorino:fix-some-comments, r=compiler-errors 2024-12-17 05:37:19 -05:00
rustc_mir_dataflow Rollup merge of #133938 - nnethercote:rustc_mir_dataflow-renamings, r=oli-obk 2024-12-13 17:25:29 +01:00
rustc_mir_transform rename rustc_attr to rustc_attr_parsing and create rustc_attr_data_structures 2024-12-16 19:08:19 +01:00
rustc_monomorphize rename rustc_attr to rustc_attr_parsing and create rustc_attr_data_structures 2024-12-16 19:08:19 +01:00
rustc_next_trait_solver Rename projection_def_id to item_def_id 2024-12-11 00:59:43 +00:00
rustc_parse Rollup merge of #134284 - estebank:issue-74863, r=lcnr 2024-12-16 20:00:22 +01:00
rustc_parse_format Remove 'apostrophes' from rustc_parse_format 2024-10-14 23:22:51 +02:00
rustc_passes Auto merge of #134381 - jdonszelmann:move-attribute-types, r=oli-obk 2024-12-17 18:50:50 +00:00
rustc_pattern_analysis no more Reveal :( 2024-11-23 13:52:54 +01:00
rustc_privacy rename rustc_attr to rustc_attr_parsing and create rustc_attr_data_structures 2024-12-16 19:08:19 +01:00
rustc_query_impl Rename ty_def_id so people will stop using it by accident 2024-12-13 16:36:38 +00:00
rustc_query_system Add hir::Attribute 2024-12-15 19:18:46 +01:00
rustc_resolve Rollup merge of #133265 - the8472:extract-if-ranges, r=cuviper 2024-12-17 22:34:40 +01:00
rustc_sanitizers Remove more traces of anonymous ADTs 2024-12-10 19:50:47 +00:00
rustc_serialize Fix explicit_iter_loop in rustc_serialize 2024-10-16 15:44:16 +02:00
rustc_session rename rustc_attr to rustc_attr_parsing and create rustc_attr_data_structures 2024-12-16 19:08:19 +01:00
rustc_smir Auto merge of #134302 - bjorn3:remove_driver_queries, r=oli-obk,jieyouxu 2024-12-17 04:57:40 +00:00
rustc_span Rollup merge of #134202 - nnethercote:rm-existing_doc_keyword, r=GuillaumeGomez 2024-12-17 05:36:52 -05:00
rustc_symbol_mangling Rollup merge of #134285 - oli-obk:push-vwrqsqlwnuxo, r=Urgau 2024-12-15 20:01:38 +11:00
rustc_target Rollup merge of #133801 - Gelbpunkt:powerpc64le-unknown-linux-musl-tier-2, r=jieyouxu,Urgau,Kobzol 2024-12-17 22:34:41 +01:00
rustc_trait_selection Rollup merge of #133265 - the8472:extract-if-ranges, r=cuviper 2024-12-17 22:34:40 +01:00
rustc_traits Delay a bug when encountering an impl with unconstrained generics in codegen_select 2024-11-23 05:27:45 +00:00
rustc_transmute fix safe-transmute handling of enums 2024-12-01 18:28:04 +01:00
rustc_ty_utils Implement projection and shim for AFIDT 2024-12-10 16:52:20 +00:00
rustc_type_ir Rename projection_def_id to item_def_id 2024-12-11 00:59:43 +00:00
rustc_type_ir_macros do not relate Abi and Safety 2024-10-22 23:13:04 +02:00
stable_mir Encode coroutine-closures in SMIR 2024-12-14 03:45:35 +00:00