rust/compiler
Stuart Cook efdc8aca3e
Rollup merge of #147043 - ilovepi:default-sanitizers, r=petrochenkov
Add default sanitizers to TargetOptions

Some sanitizers are part of a system's ABI, like the shadow call stack on Aarch64 and RISC-V Fuchsia. Typically ABI options have other spellings, but LLVM has, for historical reasons, marked this as a sanitizer instead of an alternate ABI option. As a result, Fuchsia targets may not be compiled against the correct ABI unless this option is set. This hasn't caused correctness problems, since the backend reserves the SCS register, and thus preserves its value. But this is an issue for unwinding, as the SCS will not be an array of PCs describing the call complete call chain, and will have gaps from callers that don't use the correct ABI.

In the long term, I'd like to see all the sanitizer configs that all frontends copy from clang moved into llvm's libFrontend, and exposed so that frontend consumers can use a small set of simple APIs to use sanitizers in a consistent way across the LLVM ecosystem, but that work is not yet ready today.
2025-11-06 14:07:16 +11:00
..
rustc Make llvm_enzyme a regular cargo feature 2025-09-15 15:31:56 +00:00
rustc_abi Rollup merge of #148518 - bjorn3:unify_compiler_doc_config, r=GuillaumeGomez 2025-11-05 21:28:29 +01:00
rustc_arena Allow internal_features lint in doc tests 2025-11-05 11:25:29 +00:00
rustc_ast Allow internal_features lint in doc tests 2025-11-05 11:25:29 +00:00
rustc_ast_ir Implement pattern matching for &pin mut|const T 2025-10-30 07:56:16 +08:00
rustc_ast_lowering Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_ast_passes Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_ast_pretty Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_attr_parsing Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_baked_icu_data Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_borrowck Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_builtin_macros Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_codegen_cranelift Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_codegen_gcc Auto merge of #148544 - matthiaskrgr:rollup-n9dqgwc, r=matthiaskrgr 2025-11-05 21:07:24 +00:00
rustc_codegen_llvm Rollup merge of #147043 - ilovepi:default-sanitizers, r=petrochenkov 2025-11-06 14:07:16 +11:00
rustc_codegen_ssa Rollup merge of #147043 - ilovepi:default-sanitizers, r=petrochenkov 2025-11-06 14:07:16 +11:00
rustc_const_eval Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_data_structures Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_driver Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_driver_impl Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_error_codes Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_error_messages Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_errors Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_expand Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_feature Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_fluent_macro Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_fs_util Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_graphviz Allow internal_features lint in doc tests 2025-11-05 11:25:29 +00:00
rustc_hashes some cleanups in compiler 2025-10-12 08:08:30 +00:00
rustc_hir Add #[rustc_pass_indirectly_in_non_rustic_abis] 2025-11-04 09:56:17 +01:00
rustc_hir_analysis Unify the configuration of the compiler docs 2025-11-05 11:25:27 +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 #139751 - frank-king:feature/pin-project, r=Nadrieril,traviscross 2025-11-01 08:25:44 +01:00
rustc_hir_typeck Rollup merge of #148371 - yotamofek:pr/dogfood-trim-prefix-suffix, r=fee1-dead 2025-11-05 10:59:19 +11:00
rustc_incremental Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_index Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_index_macros Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_infer Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_interface Move warning reporting from flag_to_backend_features to cfg_target_feature 2025-11-05 10:48:29 +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 Rollup merge of #143037 - androm3da:bcain/hexagon_regspan_label, r=Amanieu 2025-11-06 14:07:15 +11:00
rustc_lint_defs do not complain about enums where all discriminants fit into a c_uint 2025-11-04 11:44:55 +01:00
rustc_llvm Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_log Restrict sysroot crate imports to those defined in this repo. 2025-10-15 13:17:25 +01:00
rustc_macros use declarative macro for #[derive(TryFromU32)] 2025-10-06 14:54:38 +00:00
rustc_metadata Rollup merge of #147043 - ilovepi:default-sanitizers, r=petrochenkov 2025-11-06 14:07:16 +11:00
rustc_middle Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_mir_build Rollup merge of #147642 - camelid:misc-const-fixes, r=BoxyUwU 2025-11-02 15:56:48 +01:00
rustc_mir_dataflow Put Analysis back into Results. 2025-10-28 10:26:50 +11:00
rustc_mir_transform clippy fixes and code simplification 2025-11-02 08:16:38 +00:00
rustc_monomorphize error on non-rustic ABIs using unsized parameters 2025-11-05 12:12:10 +01:00
rustc_next_trait_solver Rollup merge of #144291 - oli-obk:const_trait_alias, r=fee1-dead 2025-10-31 02:39:14 +01:00
rustc_parse Rollup merge of #145903 - Kivooeo:c-style-pointer, r=davidtwco 2025-11-03 17:20:31 +01:00
rustc_parse_format Allow internal_features lint in doc tests 2025-11-05 11:25:29 +00:00
rustc_passes Rollup merge of #148518 - bjorn3:unify_compiler_doc_config, r=GuillaumeGomez 2025-11-05 21:28:29 +01:00
rustc_pattern_analysis split definition and use site hidden tys 2025-10-31 14:48:43 +01:00
rustc_privacy Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_proc_macro Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_public Allow internal_features lint in doc tests 2025-11-05 11:25:29 +00:00
rustc_public_bridge Allow internal_features lint in doc tests 2025-11-05 11:25:29 +00:00
rustc_query_impl Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_query_system Rollup merge of #147830 - Noratrieb:reword-unstable-fingerprint-ice, r=jackh726 2025-10-22 13:20:23 -04:00
rustc_resolve Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_sanitizers Rollup merge of #144936 - rcvalle:rust-cfi-fix-144641, r=lcnr 2025-10-28 20:39:32 +11:00
rustc_serialize Allow internal_features lint in doc tests 2025-11-05 11:25:29 +00:00
rustc_session Rollup merge of #147043 - ilovepi:default-sanitizers, r=petrochenkov 2025-11-06 14:07:16 +11:00
rustc_span Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_symbol_mangling Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_target Rollup merge of #147043 - ilovepi:default-sanitizers, r=petrochenkov 2025-11-06 14:07:16 +11:00
rustc_thread_pool some cleanups in compiler 2025-10-12 08:08:30 +00:00
rustc_trait_selection Rollup merge of #148525 - chenyukang:yukang-fix-148515, r=wesleywiser 2025-11-05 21:28:31 +01:00
rustc_traits Auto merge of #146096 - adwinwhite:handle_normalization_overflow_in_mono1, r=saethlin 2025-10-13 00:20:10 +00:00
rustc_transmute prefer to use repeat_n over repeat and take 2025-10-09 01:24:55 +08:00
rustc_ty_utils Unify the configuration of the compiler docs 2025-11-05 11:25:27 +00:00
rustc_type_ir Rollup merge of #148153 - osamakader:fix-duplicate-the, r=JonathanBrouwer 2025-10-27 22:13:23 +11:00
rustc_type_ir_macros compiler: Fix a couple issues around cargo feature unification 2025-10-31 14:14:05 -04: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