Skip to content

Updated error message E0388#35360

Merged
bors merged 1 commit into
rust-lang:masterfrom
medzin:E0388
Aug 23, 2016
Merged

Updated error message E0388#35360
bors merged 1 commit into
rust-lang:masterfrom
medzin:E0388

Conversation

@medzin

@medzin medzin commented Aug 5, 2016

Copy link
Copy Markdown

Fixes #35339 as part of #35233.

r? @GuillaumeGomez

@rust-highfive

Copy link
Copy Markdown
Contributor

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

arielb1 commented Aug 5, 2016

Copy link
Copy Markdown
Contributor

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

medzin commented Aug 5, 2016

Copy link
Copy Markdown
Author

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

@sophiajt

sophiajt commented Aug 5, 2016

Copy link
Copy Markdown
Contributor

@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

medzin commented Aug 8, 2016

Copy link
Copy Markdown
Author

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

@arielb1

arielb1 commented Aug 8, 2016

Copy link
Copy Markdown
Contributor

I would like the label "invalid mutation here".

@sophiajt

sophiajt commented Aug 8, 2016

Copy link
Copy Markdown
Contributor

@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

medzin commented Aug 9, 2016

Copy link
Copy Markdown
Author

@jonathandturner Message changed.

@sophiajt

Copy link
Copy Markdown
Contributor

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

@bors r+ rollup

@bors

bors commented Aug 22, 2016

Copy link
Copy Markdown
Collaborator

📌 Commit bb827aa has been approved by jonathandturner

@GuillaumeGomez

Copy link
Copy Markdown
Member

@bors: r-

@medzin: Please squash your commits.

@medzin

medzin commented Aug 22, 2016

Copy link
Copy Markdown
Author

@GuillaumeGomez Done

@GuillaumeGomez

Copy link
Copy Markdown
Member

Thanks!

@bors: r+ rollup

@bors

bors commented Aug 22, 2016

Copy link
Copy Markdown
Collaborator

📌 Commit bfbdff0 has been approved by GuillaumeGomez

@GuillaumeGomez

Copy link
Copy Markdown
Member

@bors: r-

@GuillaumeGomez

Copy link
Copy Markdown
Member

@bors: r=jonathandturner

@bors

bors commented Aug 22, 2016

Copy link
Copy Markdown
Collaborator

📌 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