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

Add label to E0254 #35581

Closed
wants to merge 1 commit into from
Closed

Add label to E0254 #35581

wants to merge 1 commit into from

Conversation

tvladyslav
Copy link
Contributor

This issue #35513 is a part of #35233.
Looks like it does not break unit tests.
r? @jonathandturner

This issue #35513 is a part of #35233.
Looks like it does not break unit tests.
r? @jonathandturner
@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 @jonathandturner (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.

@sophiajt
Copy link
Contributor

Thanks for the PR!

A couple of things to help you out. There's a quirk in the unit tester that requires you to add one NOTE before it starts testing the labels. I talk about it in the blog post in the section titled Extra Credit.

Once you add the NOTE, you can do a quick test on the suite by running git grep E0254 and looking for other tests that may need updating.

One code style nit. You may want to un-indent the closing curly brace so that it's clear where the block begins and ends:

            (true, _) | (_, true) if binding.is_import() || old_binding.is_import() => {
                let mut e = struct_span_err!(self.session, span, E0254, "{}", msg);
                e.span_label(span, &"already imported");
                e
            },

vs

            (true, _) | (_, true) if binding.is_import() || old_binding.is_import() => {
                let mut e = struct_span_err!(self.session, span, E0254, "{}", msg);
                e.span_label(span, &"already imported");
                e
                },

@tvladyslav
Copy link
Contributor Author

Got it! Fixing...

@tvladyslav
Copy link
Contributor Author

I put new PR #35596 , because I can't make GitHub understand --amend'ed commit.

@tvladyslav tvladyslav closed this Aug 11, 2016
@tvladyslav tvladyslav reopened this Aug 11, 2016
@dashed
Copy link

dashed commented Aug 14, 2016

@crypto-universe you probably needed to force push the commits

@bors
Copy link
Contributor

bors commented Aug 15, 2016

☔ The latest upstream changes (presumably #35666) made this pull request unmergeable. Please resolve the merge conflicts.

@tvladyslav
Copy link
Contributor Author

Error message for E0254 is already updated (from another branch).

@tvladyslav tvladyslav closed this Aug 15, 2016
@tvladyslav tvladyslav deleted the remotes/origin/E0254_new_style branch August 15, 2016 11:23
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.

5 participants