-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Edit error messages for rustc_resolve::AmbiguityKind
variants
#90075
Conversation
r? @estebank (rust-highfive has picked a reviewer for you, use r? to override) |
@pierwill you need to bless tests :) |
We could consider going further: " |
I'll take another look at these, @camelid. |
Stepping back a bit, I think it might be better if these notes were displayed as actual Basically, I'm envisioning something like this:
I think using a note would both be more consistent with other errors and make the error easier to read. |
Tests pass locally with |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
27e9138
to
8b643a3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a few comments on some changes that I felt could be made more informative. In general, some of the existing descriptions included "during import/macro resolution" or similar, which seems unhelpful and confusing. @petrochenkov i see you've assigned yourself on this PR; what do you think of removing the "during import/macro resolution" part?
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Sorry for more nitpicking, I just want to have comments from the previous round fully addressed (consistent wording and no |
Thank you, @petrochenkov! |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=petrochenkov,camelid
with the below nits addressed and petrochenkov's approval. Thanks for making this change!
(Also, it looks like tests need to be blessed.) |
Emit description of the ambiguity as a note. Co-authored-by: Noah Lev <[email protected]> Co-authored-by: Vadim Petrochenkov <[email protected]>
@bors r+ |
📌 Commit 7de1ff1 has been approved by |
☀️ Test successful - checks-actions |
Finished benchmarking commit (c7a30c8): comparison url. Summary: This benchmark run did not return any relevant changes. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression |
Edit the language of the ambiguity descriptions for E0659. These strings now appear as notes.
Closes #79717.