rust/compiler
Matthias Krüger 6e577e18c6
Rollup merge of #147181 - Zalathar:fixed-metadata, r=petrochenkov
cg_llvm: Replace enum `MetadataType` with a list of `MetadataKindId` constants

The metadata kind ID values declared in `MetadataType` are not part of the LLVM-C API, and are not machine-checked. If a value that we use ever goes out of sync with LLVM, the resulting bugs could be difficult to track down. And the existing values lack any clear indication of what LLVM declarations they correspond to.

On top of that, we currently have another way of expressing metadata kind IDs in the form of `MetadataKindId`, which creates confusing inconsistency in LLVM bindings.

This PR therefore consolidates all usage of “fixed” metadata kind IDs into one list of `MetadataKindId` constants, which is backed by static assertions in our C++ code that match them up with named anonymous-enum variants in `llvm::LLVMContext`.
2025-09-30 20:46:46 +02:00
..
rustc Make llvm_enzyme a regular cargo feature 2025-09-15 15:31:56 +00:00
rustc_abi Rollup merge of #147134 - workingjubilee:remove-explicit-abialign-deref, r=Zalathar 2025-09-29 15:44:55 +10:00
rustc_arena Introduce Arena::try_alloc_from_iter. 2025-04-19 01:13:18 +00:00
rustc_ast Use Iterator::eq and (dogfood) eq_by in compiler and library 2025-09-29 08:08:05 +03:00
rustc_ast_ir turn pointer width into an integer in target.json 2025-08-27 23:44:49 +02:00
rustc_ast_lowering Auto merge of #145882 - m-ou-se:format-args-extend-1-arg, r=petrochenkov 2025-09-26 04:34:09 +00:00
rustc_ast_passes Improve code and better check doc(cfg(...)) attributes 2025-09-27 11:29:49 +02:00
rustc_ast_pretty Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_attr_parsing Rollup merge of #147101 - yotamofek:pr/iter-eq-and-eq-by, r=jdonszelmann 2025-09-29 21:06:45 +10:00
rustc_baked_icu_data Use default locale fallback data 2025-08-28 09:48:54 +00:00
rustc_borrowck Rollup merge of #147109 - BoxyUwU:rename_concrete_opaques, r=lcnr 2025-09-30 22:25:17 +10:00
rustc_builtin_macros Use Iterator::eq and (dogfood) eq_by in compiler and library 2025-09-29 08:08:05 +03:00
rustc_codegen_cranelift Auto merge of #147145 - Zalathar:rollup-s7kcs3w, r=Zalathar 2025-09-29 08:43:49 +00:00
rustc_codegen_gcc Auto merge of #147145 - Zalathar:rollup-s7kcs3w, r=Zalathar 2025-09-29 08:43:49 +00:00
rustc_codegen_llvm Replace MetadataType with the MetadataKindId constants 2025-09-30 20:10:30 +10:00
rustc_codegen_ssa Auto merge of #147145 - Zalathar:rollup-s7kcs3w, r=Zalathar 2025-09-29 08:43:49 +00:00
rustc_const_eval remove explicit deref of AbiAlign for most methods 2025-09-28 15:02:14 -07:00
rustc_data_structures avoid calling insert_presorted more than once 2025-09-10 08:40:12 +02:00
rustc_driver compiler: Add Windows resources to rustc-main and rustc_driver 2025-09-05 14:06:31 -04:00
rustc_driver_impl fixes for numerous clippy warnings 2025-09-19 20:56:07 +00:00
rustc_error_codes Changes to the uitests 2025-08-27 20:25:18 +02:00
rustc_error_messages Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_errors fix: Filter suggestion parts that match existing code 2025-09-04 17:42:13 -06:00
rustc_expand Rollup merge of #147040 - joshtriplett:mbe-fix-comments, r=petrochenkov 2025-09-29 21:42:42 +02:00
rustc_feature Fix removed version of doc_auto_cfg, doc_cfg_hide 2025-09-29 09:45:27 +01:00
rustc_fluent_macro Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_fs_util Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_graphviz
rustc_hashes
rustc_hir Rollup merge of #147101 - yotamofek:pr/iter-eq-and-eq-by, r=jdonszelmann 2025-09-29 21:06:45 +10:00
rustc_hir_analysis Rollup merge of #147109 - BoxyUwU:rename_concrete_opaques, r=lcnr 2025-09-30 22:25:17 +10:00
rustc_hir_id rustc_hir_id: Add a comment explaining why the crate exists 2025-08-20 15:04:00 -07:00
rustc_hir_pretty Rollup merge of #146102 - fmease:rm-dead-eff-code-iii, r=fee1-dead 2025-09-02 17:08:58 +02:00
rustc_hir_typeck Rollup merge of #147109 - BoxyUwU:rename_concrete_opaques, r=lcnr 2025-09-30 22:25:17 +10:00
rustc_incremental Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_index Apply cfg(bootstrap) replacement 2025-09-26 19:09:23 -04:00
rustc_index_macros Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_infer review 2025-09-26 16:37:08 +02:00
rustc_interface Auto merge of #146376 - durin42:dwo-specify-path, r=davidtwco 2025-09-29 15:06:55 +00:00
rustc_lexer Fix a crash/mislex when more than one frontmatter closing possibility is considered 2025-09-22 15:10:41 -04:00
rustc_lint Port #[macro_export] to the new attribute parsing infrastructure 2025-09-21 10:42:47 -04:00
rustc_lint_defs Apply cfg(bootstrap) replacement 2025-09-26 19:09:23 -04:00
rustc_llvm Declare all "fixed" metadata kinds as MetadataKindId 2025-09-30 20:10:10 +10:00
rustc_log Update tracing, again 2025-09-08 09:23:37 -07:00
rustc_macros resolve: Do not finalize shadowed bindings 2025-09-25 20:36:14 +03:00
rustc_metadata Make def_path_hash_to_def_id not panic when passed an invalid hash 2025-09-26 18:36:15 +02:00
rustc_middle Rollup merge of #147109 - BoxyUwU:rename_concrete_opaques, r=lcnr 2025-09-30 22:25:17 +10:00
rustc_mir_build Rollup merge of #141469 - Kivooeo:remove-usnsafegate, r=compiler-errors 2025-09-28 18:13:11 +02:00
rustc_mir_dataflow Rollup merge of #146664 - fmease:clean-up-dyn, r=jdonszelmann 2025-09-18 11:48:51 +10:00
rustc_mir_transform Rollup merge of #146457 - alexcrichton:wasm-no-exn-instructions, r=bjorn3 2025-09-29 21:37:50 -04:00
rustc_monomorphize Auto merge of #145717 - BoxyUwU:erase_regions_rename, r=lcnr 2025-09-09 15:04:44 +00:00
rustc_next_trait_solver cleanup try_evaluate_added_goals 2025-09-29 15:28:33 +02:00
rustc_parse Use Iterator::eq and (dogfood) eq_by in compiler and library 2025-09-29 08:08:05 +03:00
rustc_parse_format Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_passes Improve code and fix typo 2025-09-27 11:29:50 +02:00
rustc_pattern_analysis Rename various "concrete opaque type" terminology to say "hidden type" 2025-09-27 22:58:02 +01:00
rustc_privacy fix doc comments to be more standard 2025-09-26 09:25:56 +00:00
rustc_proc_macro Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_public Rollup merge of #146664 - fmease:clean-up-dyn, r=jdonszelmann 2025-09-18 11:48:51 +10:00
rustc_public_bridge Remove useless lifetime parameter. 2025-07-23 23:54:37 +00:00
rustc_query_impl fixup limit handling code 2025-09-08 15:07:12 -07:00
rustc_query_system fixup limit handling code 2025-09-08 15:07:12 -07:00
rustc_resolve Detect unconstructable re-exported tuple structs 2025-09-28 21:33:34 +00:00
rustc_sanitizers Remove DynKind 2025-09-17 04:46:46 +02:00
rustc_serialize Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_session Auto merge of #146376 - durin42:dwo-specify-path, r=davidtwco 2025-09-29 15:06:55 +00:00
rustc_span Rollup merge of #146457 - alexcrichton:wasm-no-exn-instructions, r=bjorn3 2025-09-29 21:37:50 -04:00
rustc_symbol_mangling Add proper name mangling for pattern types 2025-09-23 10:59:29 +00:00
rustc_target Rollup merge of #147134 - workingjubilee:remove-explicit-abialign-deref, r=Zalathar 2025-09-29 15:44:55 +10:00
rustc_thread_pool Fix a dangling reference in rustc_thread_pool 2025-09-22 14:04:04 -07:00
rustc_trait_selection Rollup merge of #147109 - BoxyUwU:rename_concrete_opaques, r=lcnr 2025-09-30 22:25:17 +10:00
rustc_traits erase_regions to erase_and_anonymize_regions 2025-09-09 14:49:16 +02:00
rustc_transmute remove explicit deref of AbiAlign for most methods 2025-09-28 15:02:14 -07:00
rustc_ty_utils remove explicit deref of AbiAlign for most methods 2025-09-28 15:02:14 -07:00
rustc_type_ir Rollup merge of #147109 - BoxyUwU:rename_concrete_opaques, r=lcnr 2025-09-30 22:25:17 +10:00
rustc_type_ir_macros Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_windows_rc [win] Use find-msvc-tools instead of cc to find the linker and rc on Windows 2025-09-19 12:00:30 -07:00