You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A-diagnosticsArea: Messages for errors, warnings, and lintsC-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
The current diagnostics are a little ad hoc and rely on counting the number of mismatches (e.g. they will only produce an error for the first mismatch). It would be nice to produce diagnostics like:
missing generic arguments for `T`, `const N: usize`, `U`
That said, if @varkor is too busy to work on this, you could talk to them on Discord or Zulip to see what their plans were, and maybe turn this into a mentored issue.
I don't have the bandwidth to work on this at the moment, or any time soon, so if anyone is interested in tackling it, I'll be happy to mentor the issue.
A-diagnosticsArea: Messages for errors, warnings, and lintsC-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
Activity
varkor commentedon Jan 21, 2020
This is follow up work for #68434.
contrun commentedon Mar 13, 2020
Please give more context on this. I am not sure the error message of which test should be improved.
eddyb commentedon Mar 13, 2020
@contrun This is more of the kind of issue opened to avoid forgetting about finishing some work, sorry for the confusion.
That is, this is @varkor leaving a TODO to themselves about improving the diagnostics from #68434.
contrun commentedon Mar 13, 2020
Ok. I see. Thanks for the explanation.
eddyb commentedon Mar 13, 2020
That said, if @varkor is too busy to work on this, you could talk to them on Discord or Zulip to see what their plans were, and maybe turn this into a mentored issue.
varkor commentedon Mar 14, 2020
The idea is essentially this. We currently emit errors telling the user that the generic arguments they provide are in the wrong order: https://github.com/rust-lang/rust/pull/68434/files#diff-5df0144261224cec2047029de05fa827R107
However, what we'd like to do is suggest reordering the parameters, and let rustfix automatically apply the suggestion.
I don't have the bandwidth to work on this at the moment, or any time soon, so if anyone is interested in tackling it, I'll be happy to mentor the issue.
rakshith-ravi commentedon May 9, 2020
@varkor would you mind if I take this up?
varkor commentedon May 9, 2020
@rakshith-ravi: you're very welcome to! Let me know if you need any guidance in tackling this issue!
rakshith-ravi commentedon May 10, 2020
@rustbot claim
Rollup merge of rust-lang#72271 - rakshith-ravi:master, r=varkor
Rollup merge of rust-lang#72271 - rakshith-ravi:master, r=varkor
Rollup merge of rust-lang#72271 - rakshith-ravi:master, r=varkor
Rollup merge of rust-lang#72271 - rakshith-ravi:master, r=varkor