Skip to content
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

Merged
merged 1 commit into from
Aug 23, 2016
Merged

Updated error message E0388 #35360

merged 1 commit into from
Aug 23, 2016

Conversation

medzin
Copy link
Contributor

@medzin medzin commented Aug 5, 2016

Fixes #35339 as part of #35233.

r? @GuillaumeGomez

@rust-highfive
Copy link
Collaborator

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.

@arielb1
Copy link
Contributor

arielb1 commented Aug 5, 2016

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 help.

@medzin
Copy link
Contributor Author

medzin commented Aug 5, 2016

@arielb1 So label "bad mutation here" should be applied to error codes from E0385 to E0389?

@sophiajt
Copy link
Contributor

sophiajt commented Aug 5, 2016

@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?

@medzin
Copy link
Contributor Author

medzin commented Aug 8, 2016

@arielb1 & @jonathandturner So, what should I change? I'm a little confused here.

@arielb1
Copy link
Contributor

arielb1 commented Aug 8, 2016

I would like the label "invalid mutation here".

@sophiajt
Copy link
Contributor

sophiajt commented Aug 8, 2016

@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.

@medzin
Copy link
Contributor Author

medzin commented Aug 9, 2016

@jonathandturner Message changed.

@sophiajt
Copy link
Contributor

Sorry for the delay! I forgot I hadn't approved this one.

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Aug 22, 2016

📌 Commit bb827aa has been approved by jonathandturner

@GuillaumeGomez
Copy link
Member

@bors: r-

@medzin: Please squash your commits.

@medzin
Copy link
Contributor Author

medzin commented Aug 22, 2016

@GuillaumeGomez Done

@GuillaumeGomez
Copy link
Member

Thanks!

@bors: r+ rollup

@bors
Copy link
Contributor

bors commented Aug 22, 2016

📌 Commit bfbdff0 has been approved by GuillaumeGomez

@GuillaumeGomez
Copy link
Member

@bors: r-

@GuillaumeGomez
Copy link
Member

@bors: r=jonathandturner

@bors
Copy link
Contributor

bors commented Aug 22, 2016

📌 Commit bfbdff0 has been approved by jonathandturner

sophiajt pushed a commit to sophiajt/rust that referenced this pull request Aug 22, 2016
bors added a commit that referenced this pull request Aug 22, 2016
@bors bors merged commit bfbdff0 into rust-lang:master Aug 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants