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

#36553 specialisation error 520 is misleading #36652

Merged
merged 2 commits into from Sep 26, 2016

Conversation

giannicic
Copy link
Contributor

@giannicic giannicic commented Sep 22, 2016

this commit corrects E0520 error text.
See referenced issue for further info

r? @nrc

this commit correct E0502 error text.
See referenced issue for further info
@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 @nrc (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.

@GuillaumeGomez GuillaumeGomez changed the title #36553 specialisation error 502 is misleading #36553 specialisation error 520 is misleading Sep 25, 2016
impl_item.name);
err.span_label(impl_item.span, &format!("cannot specialize default item `{}`",
impl_item.name));

match tcx.span_of_impl(parent_impl) {
Ok(span) => {
err.span_label(span, &"parent `impl` is here");
err.note(&format!("to specialize, either the parent `impl` or `{}` \
err.note(&format!("to specialize, `{}` \
in the parent `impl` must be marked `default`",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: this string could all fit on one line now.

@nrc
Copy link
Member

nrc commented Sep 25, 2016

looks good, thanks! r=me with the nit about the string fixed.

@giannicic
Copy link
Contributor Author

r=nrc

@nrc
Copy link
Member

nrc commented Sep 26, 2016

@bors: r+

@bors
Copy link
Contributor

bors commented Sep 26, 2016

📌 Commit 63a5892 has been approved by nrc

@bors
Copy link
Contributor

bors commented Sep 26, 2016

⌛ Testing commit 63a5892 with merge 0a0215d...

bors added a commit that referenced this pull request Sep 26, 2016
this commit corrects E0520 error text.
See referenced issue for further info

r? @nrc
@bors bors merged commit 63a5892 into rust-lang:master Sep 26, 2016
@giannicic giannicic deleted the issue-36553 branch September 27, 2016 15:41
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.

None yet

4 participants