about summary refs log tree commit diff
path: root/tests/ui/iterators/invalid-iterator-chain.stderr
AgeCommit message (Collapse)AuthorLines
2024-11-02Trim output of E0277 in some casesEsteban Küber-2/+0
Remove default note for "trait is not implemented" in favor of the more colorful diff output from the previous commit. Removes duplicated output.
2024-11-02Add trait diff highlighting logic and use it in E0277Esteban Küber-2/+4
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-09-22Don't call const normalize in error reportingMichael Goulet-5/+5
2024-06-12Spell out other trait diagnosticAlex Macleod-10/+10
2024-03-27Use `TraitRef::to_string` sorting in favor of `TraitRef::ord`, as the latter ↵Oli Scherer-5/+5
compares `DefId`s which we need to avoid
2023-10-14Special case iterator chain checks for suggestionEsteban Küber-0/+26
When encountering method call chains of `Iterator`, check for trailing `;` in the body of closures passed into `Iterator::map`, as well as calls to `<T as Clone>::clone` when `T` is a type param and `T: !Clone`. Fix #9082.
2023-10-02Point out the actual mismatch errorMichael Goulet-0/+2
2023-10-02For a single impl candidate, try to unify it with error trait refMichael Goulet-2/+2
2023-08-26More accurately point at argumentsEsteban Küber-10/+20
2023-06-27Don't sort strings right after we just sorted by typesMichael Goulet-5/+5
2023-01-11Move /src/test to /testsAlbert Larsan-0/+176