-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Updated error message E0388 #35360
Updated error message E0388 #35360
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @arielb1 (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
The error can also be "cannot assign in a static". I think the label should be "bad mutation here". Also, the label can apply to all the error codes in the function - put it before the |
@arielb1 So label "bad mutation here" should be applied to error codes from E0385 to E0389? |
@arielb1 - trying to come up with a good wording. What do you mean by "cannot assign in a static". You can assign to a static, no? What are the cases you can't? |
@arielb1 & @jonathandturner So, what should I change? I'm a little confused here. |
I would like the label "invalid mutation here". |
@medzin - sorry for the confusion! We ended up chatting (and I also chatted with @nikomatsakis) and he had this suggestion: "cannot write data in a static definition" Please use this for now. If we need to update it later, we can do it in a different PR. |
@jonathandturner Message changed. |
Sorry for the delay! I forgot I hadn't approved this one. @bors r+ rollup |
📌 Commit bb827aa has been approved by |
@GuillaumeGomez Done |
Thanks! @bors: r+ rollup |
📌 Commit bfbdff0 has been approved by |
@bors: r- |
@bors: r=jonathandturner |
📌 Commit bfbdff0 has been approved by |
Updated error message E0388 Fixes rust-lang#35339 as part of rust-lang#35233. r? @GuillaumeGomez
Fixes #35339 as part of #35233.
r? @GuillaumeGomez