rust/compiler
Stuart Cook 19211dfd0f
Rollup merge of #146615 - a4lg:codegen-llvm-feature-conversion-tidying, r=workingjubilee
rustc_codegen_llvm: Feature Conversion Tidying

The author thinks we can improve `to_llvm_features`, a function to convert a Rust target feature name into an LLVM feature (or nothing, to ignore features unsupported by LLVM) for better maintainability.

1.  We can simplify some clauses and some expressions.
2.  There are some readability issues.

This PR attempts to resolve some of them by tidying many cases.
2025-09-19 22:31:51 +10:00
..
rustc Make llvm_enzyme a regular cargo feature 2025-09-15 15:31:56 +00:00
rustc_abi Rollup merge of #144066 - RalfJung:extern-c-variadics, r=workingjubilee 2025-09-02 17:08:52 +02:00
rustc_arena Introduce Arena::try_alloc_from_iter. 2025-04-19 01:13:18 +00:00
rustc_ast c-variadic: reject functions with unsupported extern ABI 2025-09-09 21:38:38 +02:00
rustc_ast_ir turn pointer width into an integer in target.json 2025-08-27 23:44:49 +02:00
rustc_ast_lowering Introduce hir::ImplItemImplKind 2025-09-12 15:14:15 -05:00
rustc_ast_passes Rollup merge of #146434 - folkertdev:c-variadic-inherent-methods, r=workingjubilee 2025-09-18 17:20:56 +02:00
rustc_ast_pretty Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_attr_parsing port #[rustc_coherence_is_core] to the new attribute parsing infrastructure 2025-09-17 10:02:23 -07:00
rustc_baked_icu_data Use default locale fallback data 2025-08-28 09:48:54 +00:00
rustc_borrowck Rollup merge of #146717 - amandasystems:remove-placeholder-hack, r=lcnr 2025-09-18 17:20:59 +02:00
rustc_builtin_macros Rollup merge of #146598 - bjorn3:feature_llvm_enzyme, r=davidtwco 2025-09-17 20:29:36 +02:00
rustc_codegen_cranelift Rollup merge of #146664 - fmease:clean-up-dyn, r=jdonszelmann 2025-09-18 11:48:51 +10:00
rustc_codegen_gcc Remove unreachable unsized arg handling in store_fn_arg/store_arg in codegen 2025-09-12 09:49:41 -05:00
rustc_codegen_llvm Rollup merge of #146615 - a4lg:codegen-llvm-feature-conversion-tidying, r=workingjubilee 2025-09-19 22:31:51 +10:00
rustc_codegen_ssa Rollup merge of #146229 - Hayden602:issue-142796-fix, r=ZuseZ4 2025-09-19 22:31:49 +10:00
rustc_const_eval Rollup merge of #146597 - modhanami:add-struct-tail-recursion-limit-span, r=oli-obk 2025-09-18 17:20:57 +02: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 Make llvm_enzyme a regular cargo feature 2025-09-15 15:31:56 +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 Move more early buffered lints to dyn lint diagnostics (4/N) 2025-09-14 12:38:12 +02:00
rustc_feature initial implementation of the darwin_objc unstable feature 2025-09-13 16:06:22 -07: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 Remove #![warn(unreachable_pub)] from all compiler/ crates. 2025-03-11 13:14:21 +11:00
rustc_hashes Revert "Use workspace lints for crates in compiler/ #138084" 2025-03-10 18:12:47 +08:00
rustc_hir port #[rustc_coherence_is_core] to the new attribute parsing infrastructure 2025-09-17 10:02:23 -07:00
rustc_hir_analysis Auto merge of #145993 - lcnr:allow-calling-opaques, r=BoxyUwU 2025-09-18 13:49:53 +00: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 Auto merge of #146727 - matthiaskrgr:rollup-98812uj, r=matthiaskrgr 2025-09-18 16:55:05 +00:00
rustc_incremental Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_index Rollup merge of #144765 - Qelxiros:range-inclusive-last, r=jhpratt 2025-09-10 14:17:37 +02:00
rustc_index_macros Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_infer Auto merge of #145993 - lcnr:allow-calling-opaques, r=BoxyUwU 2025-09-18 13:49:53 +00:00
rustc_interface Make llvm_enzyme a regular cargo feature 2025-09-15 15:31:56 +00:00
rustc_lexer Rollup merge of #146106 - epage:whitespace, r=fee1-dead 2025-09-03 23:08:10 +10:00
rustc_lint Rollup merge of #146664 - fmease:clean-up-dyn, r=jdonszelmann 2025-09-18 11:48:51 +10:00
rustc_lint_defs Move more early buffered lints to dyn lint diagnostics (4/N) 2025-09-14 12:38:12 +02:00
rustc_llvm Use LLVMDIBuilderCreateTypedef 2025-09-17 22:32:22 +10:00
rustc_log Update tracing, again 2025-09-08 09:23:37 -07:00
rustc_macros Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_metadata Don't store defaultness for inherent impl items 2025-09-12 15:14:15 -05:00
rustc_middle Rollup merge of #146597 - modhanami:add-struct-tail-recursion-limit-span, r=oli-obk 2025-09-18 17:20:57 +02:00
rustc_mir_build Remove Rvalue::Len. 2025-09-16 22:23:19 +00: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 #146664 - fmease:clean-up-dyn, r=jdonszelmann 2025-09-18 11:48:51 +10: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 Auto merge of #145993 - lcnr:allow-calling-opaques, r=BoxyUwU 2025-09-18 13:49:53 +00:00
rustc_parse Detect top-level ... in argument type 2025-09-16 11:38:08 -07:00
rustc_parse_format Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_passes Rollup merge of #146664 - fmease:clean-up-dyn, r=jdonszelmann 2025-09-18 11:48:51 +10:00
rustc_pattern_analysis Remove DynKind 2025-09-17 04:46:46 +02:00
rustc_privacy Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10: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 Move more early buffered lints to dyn lint diagnostics (3/N) 2025-09-14 12:38:12 +02: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 Set lto="fat" automatically when compiling with RUSTFLAGS="-Zautodiff=Enable". 2025-09-18 15:26:14 +08:00
rustc_span Rollup merge of #146564 - cjgillot:mir-nolen, r=scottmcm 2025-09-17 14:56:48 +10:00
rustc_symbol_mangling Remove DynKind 2025-09-17 04:46:46 +02:00
rustc_target Add --print target-spec-json-schema 2025-09-12 20:53:28 +02:00
rustc_thread_pool Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_trait_selection Auto merge of #146727 - matthiaskrgr:rollup-98812uj, r=matthiaskrgr 2025-09-18 16:55:05 +00:00
rustc_traits erase_regions to erase_and_anonymize_regions 2025-09-09 14:49:16 +02:00
rustc_transmute Driveby fixes 2025-09-09 14:49:16 +02:00
rustc_ty_utils Rollup merge of #146597 - modhanami:add-struct-tail-recursion-limit-span, r=oli-obk 2025-09-18 17:20:57 +02:00
rustc_type_ir Auto merge of #145993 - lcnr:allow-calling-opaques, r=BoxyUwU 2025-09-18 13:49:53 +00:00
rustc_type_ir_macros Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_windows_rc compiler: Add Windows resources to rustc-main and rustc_driver 2025-09-05 14:06:31 -04:00