rust/tests/ui/diagnostic_namespace
Esteban Küber b7fc1a7431 Add trait diff highlighting logic and use it in E0277
When a trait is not implemented for a type, but there *is* an `impl`
for another type or different trait params, we format the output to
use highlighting in the same way that E0308 does for types.

The logic accounts for 3 cases:
- When both the type and trait in the expected predicate and the candidate are different
- When only the types are different
- When only the trait generic params are different

For each case, we use slightly different formatting and wording.
2024-11-02 03:08:04 +00:00
..
auxiliary Add more ICEs due to malformed diagnostic::on_unimplemented 2024-05-07 23:13:44 -04:00
do_not_recommend Add trait diff highlighting logic and use it in E0277 2024-11-02 03:08:04 +00:00
on_unimplemented Remove 'apostrophes' from rustc_parse_format 2024-10-14 23:22:51 +02:00
can_use_the_diagnostic_name_in_other_places.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
deny_malformed_attribute.rs Ungate the UNKNOWN_OR_MALFORMED_DIAGNOSTIC_ATTRIBUTES lint 2024-03-14 10:49:28 +01:00
deny_malformed_attribute.stderr Ungate the UNKNOWN_OR_MALFORMED_DIAGNOSTIC_ATTRIBUTES lint 2024-03-14 10:49:28 +01:00
existing_proc_macros.rs Stabilize the #[diagnostic] namespace and #[diagnostic::on_unimplemented] attribute 2024-02-27 08:50:56 +01:00
malformed_foreign_on_unimplemented.rs Add more ICEs due to malformed diagnostic::on_unimplemented 2024-05-07 23:13:44 -04:00
malformed_foreign_on_unimplemented.stderr Fix ICEs in diagnostic::on_unimplemented 2024-05-07 23:13:44 -04:00
non_existing_attributes_accepted.rs Stabilize the #[diagnostic] namespace and #[diagnostic::on_unimplemented] attribute 2024-02-27 08:50:56 +01:00
non_existing_attributes_accepted.stderr Stabilize the #[diagnostic] namespace and #[diagnostic::on_unimplemented] attribute 2024-02-27 08:50:56 +01:00
requires_path.rs Stabilize the #[diagnostic] namespace and #[diagnostic::on_unimplemented] attribute 2024-02-27 08:50:56 +01:00
requires_path.stderr Stabilize the #[diagnostic] namespace and #[diagnostic::on_unimplemented] attribute 2024-02-27 08:50:56 +01:00
suggest_typos.rs Add `on_unimplemented" typo suggestions 2024-05-15 00:49:33 +02:00
suggest_typos.stderr Add `on_unimplemented" typo suggestions 2024-05-15 00:49:33 +02:00