rust/compiler/rustc_trait_selection/src/error_reporting
Georg Semmler 27d5db166e
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.
2024-07-11 08:14:28 +02:00
..
traits Allows #[diagnostic::do_not_recommend] to supress trait impls in suggestions as well 2024-07-11 08:14:28 +02:00
mod.rs Move trait selection error reporting to its own top-level module 2024-07-08 16:04:47 -04:00