rust/compiler
Matthias Krüger a10b4d1463
Rollup merge of #127598 - weiznich:diagnostic_do_not_recommend_also_skips_help, r=compiler-errors
Allows `#[diagnostic::do_not_recommend]` to supress trait impls in suggestions as well

This commit changes the error reporting mechanism for not implemented traits to skip impl marked as `#[diagnostic::do_not_recommend]` in the help part of the error message ("the following other types implement trait `Foo`:"). The main use case here is to allow crate authors to skip non-meaningful confusing suggestions. A common example for this are fully generic impls on tuples.

Related to https://github.com/rust-lang/rust/issues/51992

r? `@compiler-errors`
2024-07-11 17:01:39 +02:00
..
rustc
rustc_abi Rollup merge of #123043 - GoldsteinE:fix/repr-c-dead-branches, r=oli-obk 2024-07-04 18:16:22 +02:00
rustc_arena
rustc_ast Make visit_clobber's impl safe 2024-07-10 07:54:17 +00:00
rustc_ast_ir
rustc_ast_lowering Auto merge of #127200 - fee1-dead-contrib:trait_def_const_trait, r=compiler-errors 2024-07-09 06:51:35 +00:00
rustc_ast_passes Rollup merge of #127092 - compiler-errors:rtn-dots-redux, r=estebank 2024-07-03 23:30:07 +02:00
rustc_ast_pretty Rollup merge of #127092 - compiler-errors:rtn-dots-redux, r=estebank 2024-07-03 23:30:07 +02:00
rustc_attr
rustc_baked_icu_data
rustc_borrowck Rollup merge of #124599 - estebank:issue-41708, r=wesleywiser 2024-07-11 17:01:36 +02:00
rustc_builtin_macros Rollup merge of #127308 - nnethercote:Attribute-cleanups, r=petrochenkov 2024-07-07 14:22:01 +02:00
rustc_codegen_cranelift Auto merge of #113128 - WaffleLapkin:become_trully_unuwuable, r=oli-obk,RalfJung 2024-07-08 04:35:04 +00:00
rustc_codegen_gcc Update Cargo.lock and remove duplicated impl 2024-07-10 13:02:26 +02:00
rustc_codegen_llvm Auto merge of #127001 - beetrees:f16-debuginfo, r=michaelwoerister 2024-07-09 09:07:42 +00:00
rustc_codegen_ssa Support tail calls in mir via TerminatorKind::TailCall 2024-07-07 17:11:04 +02:00
rustc_const_eval Move trait selection error reporting to its own top-level module 2024-07-08 16:04:47 -04:00
rustc_data_structures Auto merge of #127226 - mat-1:optimize-siphash-round, r=nnethercote 2024-07-04 04:03:45 +00:00
rustc_driver
rustc_driver_impl Move codegen_and_build_linker from Queries to Linker 2024-07-01 11:00:49 +00:00
rustc_error_codes Correct description of E0502 2024-07-06 09:13:14 +03:00
rustc_error_messages
rustc_errors Rollup merge of #120248 - WaffleLapkin:bonk-ptr-object-casts, r=compiler-errors,oli-obk,lnicola 2024-07-08 16:28:15 +02:00
rustc_expand Rollup merge of #126841 - c410-f3r:concat-again, r=petrochenkov 2024-07-08 13:04:30 +08:00
rustc_feature Auto merge of #127200 - fee1-dead-contrib:trait_def_const_trait, r=compiler-errors 2024-07-09 06:51:35 +00:00
rustc_fluent_macro
rustc_fs_util Remove useless tidy-alphabetical markers. 2024-06-20 09:23:20 +10:00
rustc_graphviz
rustc_hir Rollup merge of #127092 - compiler-errors:rtn-dots-redux, r=estebank 2024-07-03 23:30:07 +02:00
rustc_hir_analysis Auto merge of #127575 - chenyukang:yukang-fix-struct-fields-ice, r=compiler-errors 2024-07-11 03:12:38 +00:00
rustc_hir_pretty implement new effects desugaring 2024-06-28 10:57:35 +00:00
rustc_hir_typeck Auto merge of #127575 - chenyukang:yukang-fix-struct-fields-ice, r=compiler-errors 2024-07-11 03:12:38 +00:00
rustc_incremental
rustc_index Auto merge of #127170 - bjorn3:no_specialize_index_borrowck, r=michaelwoerister 2024-07-04 14:24:43 +00:00
rustc_index_macros Remove usage of specialization from newtype_index! 2024-06-30 16:42:53 +00:00
rustc_infer Avoid follow-up errors and ICEs after missing lifetime errors on data structures 2024-07-11 11:00:15 +00:00
rustc_interface Rollup merge of #127184 - bjorn3:interface_refactor2, r=Nadrieril 2024-07-03 23:30:07 +02:00
rustc_lexer
rustc_lint Auto merge of #127097 - compiler-errors:async-closure-lint, r=oli-obk 2024-07-11 06:59:10 +00:00
rustc_lint_defs Auto merge of #127097 - compiler-errors:async-closure-lint, r=oli-obk 2024-07-11 06:59:10 +00:00
rustc_llvm Rename the asm-comments compiler flag to verbose-asm 2024-07-02 21:42:01 -04:00
rustc_log
rustc_macros Make sure that labels are defined after the primary span in diagnostics 2024-07-10 18:55:45 -04:00
rustc_metadata report pat no field error no recoverd struct variant 2024-07-11 00:18:47 +08:00
rustc_middle Auto merge of #127575 - chenyukang:yukang-fix-struct-fields-ice, r=compiler-errors 2024-07-11 03:12:38 +00:00
rustc_mir_build Auto merge of #127028 - Nadrieril:fix-or-pat-expansion, r=matthewjasper 2024-07-09 16:33:59 +00:00
rustc_mir_dataflow Support tail calls in mir via TerminatorKind::TailCall 2024-07-07 17:11:04 +02:00
rustc_mir_transform Auto merge of #127234 - ZhuUx:inlined-expr, r=davidtwco,Zalathar 2024-07-09 20:24:30 +00:00
rustc_monomorphize Auto merge of #113128 - WaffleLapkin:become_trully_unuwuable, r=oli-obk,RalfJung 2024-07-08 04:35:04 +00:00
rustc_next_trait_solver Rollup merge of #127508 - lcnr:search-graph-prep, r=compiler-errors 2024-07-10 00:37:12 -04:00
rustc_parse Auto merge of #127419 - trevyn:issue-125446, r=fee1-dead 2024-07-10 18:27:32 +00:00
rustc_parse_format
rustc_passes Move trait selection error reporting to its own top-level module 2024-07-08 16:04:47 -04:00
rustc_pattern_analysis Replace f16 and f128 pattern matching stubs with real implementations 2024-06-23 04:28:42 -05:00
rustc_privacy
rustc_query_impl Allow tracing through item_bounds query invocations on opaques 2024-06-19 08:47:55 +00:00
rustc_query_system Auto merge of #126326 - eggyal:ununsafe-StableOrd, r=michaelwoerister 2024-06-25 15:51:35 +00:00
rustc_resolve Fix diagnostic and add a test for it 2024-07-10 18:56:06 -04:00
rustc_sanitizers Split out IntoIterator and non-Iterator constructors for AliasTy/AliasTerm/TraitRef/projection 2024-06-24 11:28:21 -04:00
rustc_serialize chore: remove duplicate words 2024-07-02 11:25:31 +08:00
rustc_session Rename the asm-comments compiler flag to verbose-asm 2024-07-02 21:42:01 -04:00
rustc_smir Auto merge of #113128 - WaffleLapkin:become_trully_unuwuable, r=oli-obk,RalfJung 2024-07-08 04:35:04 +00:00
rustc_span Auto merge of #127008 - Jules-Bertholet:tc-ergonomics, r=Nadrieril 2024-07-05 09:10:17 +00:00
rustc_symbol_mangling Fix FnMut/Fn shim for coroutine-closures that capture references 2024-06-29 17:38:02 -04:00
rustc_target Use the aligned size for alloca at args when the pass mode is cast. 2024-07-02 06:33:35 +08:00
rustc_trait_selection Allows #[diagnostic::do_not_recommend] to supress trait impls in suggestions as well 2024-07-11 08:14:28 +02:00
rustc_traits Split out overflow handling into its own module 2024-07-09 09:51:56 -04:00
rustc_transmute
rustc_ty_utils iter_identity is a better name 2024-07-07 00:12:35 -04:00
rustc_type_ir simplify and future-proof needs_normalization 2024-07-10 15:56:20 +02:00
rustc_type_ir_macros
stable_mir Add method to get all attributes on a definition 2024-06-28 13:24:41 +08:00