rust/tests/ui/generic-const-items
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
..
assoc-const-AnonConst-ice-108220.rs
assoc-const-missing-type.rs
assoc-const-missing-type.stderr
assoc-const-no-infer-ice-115806.rs
assoc-const-no-infer-ice-115806.stderr
associated-const-equality.rs
basic.rs
compare-impl-item.rs
compare-impl-item.stderr
const-trait-impl.rs
duplicate-where-clause.rs
duplicate-where-clause.stderr
elided-lifetimes.rs
elided-lifetimes.stderr
evaluatable-bounds.fixed
evaluatable-bounds.rs
evaluatable-bounds.stderr
evaluatable-bounds.unconstrained.stderr
feature-gate-generic_const_items.rs
feature-gate-generic_const_items.stderr
hkl_where_bounds.rs
inference-failure.rs
inference-failure.stderr
misplaced-where-clause.fixed
misplaced-where-clause.rs
misplaced-where-clause.stderr
parameter-defaults.rs
parameter-defaults.stderr
recursive.rs
reference-outlives-referent.rs
reference-outlives-referent.stderr
trivially-unsatisfied-bounds-0.rs
trivially-unsatisfied-bounds-0.stderr
trivially-unsatisfied-bounds-1.rs
trivially-unsatisfied-bounds-1.stderr
unsatisfied-bounds.rs
unsatisfied-bounds.stderr
unsatisfied-evaluatable-bounds.rs
unsatisfied-evaluatable-bounds.stderr
unsatisfied-outlives-bounds.rs
unsatisfied-outlives-bounds.stderr
wfcheck_err_leak_issue_118179.rs
wfcheck_err_leak_issue_118179.stderr