-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
E0384 needs to be updated to new format #35184
Comments
@jonathandturner usually E-easy issues benefit a lot from a short summary on what should be done. It would likely involve changing this code to use Why is there a distinction between these two? |
@nagisa - I'm actually hoping up to queue a lot of these to go along with a call-for-volunteers blog post. You're right though it could use some additional guidance. To your other point, for small messages it makes sense to use labels. For larger, more involved messages, sometimes span_note works a little better. In time, hopefully we'll strike a good balance. |
@nagisa - updated |
I would take this one. |
@jonathandturner there is maybe an issue with this pull request, because I'm using the spec of your blog post instead of the one said here. They are almost identical, but there is a minor difference. Here says: ^^^^^ re-assignment of immutable And the implemented is the later, should I do the former instead? I noticed a bit late, sorry for asking after sending the request. |
@theypsilon - what you implemented looks good to me. We'll no doubt improve the wording over time, but this looks good for a first pass. |
Understood, thanks. |
Update error message E0384 to new format Part of rust-lang#35233 Fixes rust-lang#35184 r? @jonathandturner
Update error message E0384 to new format Part of rust-lang#35233 Fixes rust-lang#35184 r? @jonathandturner
Update error message E0384 to new format Part of rust-lang#35233 Fixes rust-lang#35184 r? @jonathandturner
E0384 still uses the old format and can be updated to the new format. Ideally, we would move from span_note to span_label, as well as add a few labels.
Given the example:
This would change the error from this:
to:
The text was updated successfully, but these errors were encountered: