rust/tests/ui/impl-trait/issues
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
..
infinite-impl-trait-issue-38064.rs
infinite-impl-trait-issue-38064.stderr
issue-21659-show-relevant-trait-impls-3.rs
issue-21659-show-relevant-trait-impls-3.stderr
issue-42479.rs
issue-49376.rs
issue-52128.rs
issue-53457.rs
issue-54600.rs
issue-54600.stderr
issue-54840.rs
issue-54840.stderr
issue-54895.rs
issue-54895.stderr
issue-55608-captures-empty-region.rs
issue-57464-unexpected-regions.rs
issue-57979-deeply-nested-impl-trait-in-assoc-proj.rs
issue-57979-deeply-nested-impl-trait-in-assoc-proj.stderr
issue-57979-impl-trait-in-path.rs Move an impl-Trait check from AST validation to AST lowering 2024-10-27 07:41:52 +01:00
issue-57979-impl-trait-in-path.stderr Move an impl-Trait check from AST validation to AST lowering 2024-10-27 07:41:52 +01:00
issue-57979-nested-impl-trait-in-assoc-proj.rs
issue-57979-nested-impl-trait-in-assoc-proj.stderr
issue-58504.rs
issue-58504.stderr
issue-58956.rs
issue-58956.stderr
issue-62742.rs
issue-62742.stderr Add trait diff highlighting logic and use it in E0277 2024-11-02 03:08:04 +00:00
issue-65581.rs
issue-67830.rs
issue-67830.stderr
issue-70877.rs
issue-70877.stderr
issue-70971.rs
issue-70971.stderr
issue-74282.rs
issue-74282.stderr
issue-77987.rs
issue-78722-2.rs
issue-78722-2.stderr
issue-78722.rs
issue-78722.stderr
issue-79099.rs
issue-79099.stderr
issue-82139.rs
issue-82139.stderr
issue-83919.rs
issue-83919.stderr
issue-83929-impl-trait-in-generic-default.rs
issue-83929-impl-trait-in-generic-default.stderr
issue-84073.rs
issue-84073.stderr
issue-84919.rs
issue-84919.stderr
issue-86201.rs
issue-86642.rs
issue-86642.stderr
issue-86719.rs
issue-86719.stderr
issue-86800.rs
issue-86800.stderr
issue-87295.rs
issue-87295.stderr
issue-87340.rs
issue-87340.stderr
issue-88236-2.rs
issue-88236-2.stderr
issue-88236.rs
issue-88236.stderr
issue-89312.rs
issue-92305.rs
issue-92305.stderr
issue-93788.rs
issue-99348-impl-compatibility.rs
issue-99348-impl-compatibility.stderr
issue-104815.rs
issue-105826.rs