Alex Macleod
d0112c6849
Spell out other trait diagnostic
2024-06-12 12:34:47 +00:00
Oli Scherer
ae24fef028
Use TraitRef::to_string
sorting in favor of TraitRef::ord
, as the latter compares DefId
s which we need to avoid
2024-03-27 14:02:15 +00:00
Esteban Küber
6d23ee8430
Special case iterator chain checks for suggestion
...
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-14 04:11:54 +00:00
Michael Goulet
07851679cd
Point out the actual mismatch error
2023-10-02 23:14:29 +00:00
Michael Goulet
8be12f4ed7
For a single impl candidate, try to unify it with error trait ref
2023-10-02 23:14:29 +00:00
Esteban Küber
b6494a7bb4
More accurately point at arguments
2023-08-26 19:25:46 +00:00
Michael Goulet
2c33dfea76
Don't sort strings right after we just sorted by types
2023-06-27 23:31:06 +00:00
Albert Larsan
cf2dff2b1e
Move /src/test to /tests
2023-01-11 09:32:08 +00:00