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

resolve: print location of static for "static in pattern" error #33340

Merged
merged 1 commit into from
May 5, 2016

Conversation

birkenfeld
Copy link
Contributor

The implementation mirrors the one for "constant defined here" annotation used for constant patterns in the irrefutable-pattern case.

Fixes: #23716

@rust-highfive
Copy link
Collaborator

r? @Aatch

(rust_highfive has picked a reviewer for you, use r? to override)

// option. This file may not be copied, modified, or distributed
// except according to those terms.

static foo: i32 = 0;
Copy link
Member

Choose a reason for hiding this comment

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

test for the import resolution? r=me with or without fix

@Manishearth
Copy link
Member

@bors delegate+

r=Manishearth this once you add the test.

@bors
Copy link
Contributor

bors commented May 2, 2016

✌️ @birkenfeld can now approve this pull request

@birkenfeld
Copy link
Contributor Author

@Manishearth sorry, what exactly do I do? @b0rs r=Manishearth?

@Manishearth
Copy link
Member

yes, with an o instead of a 0

@birkenfeld
Copy link
Contributor Author

birkenfeld commented May 2, 2016

yes, with an o instead of a 0

that was intentional to avoid triggering it - I don't know how zealous it is in parsing these comments :)

The implementation mirrors the one for "constant defined here" annotation
used for constant patterns in the irrefutable-pattern case.

Fixes: rust-lang#23716
@birkenfeld
Copy link
Contributor Author

@bors r=Manishearth

@bors
Copy link
Contributor

bors commented May 3, 2016

📌 Commit 4ba6bf4 has been approved by Manishearth

Manishearth added a commit to Manishearth/rust that referenced this pull request May 3, 2016
resolve: print location of static for "static in pattern" error

The implementation mirrors the one for "constant defined here" annotation used for constant patterns in the irrefutable-pattern case.

Fixes: rust-lang#23716
bors added a commit that referenced this pull request May 3, 2016
Rollup of 14 pull requests

- Successful merges: #33277, #33294, #33314, #33322, #33333, #33338, #33339, #33340, #33343, #33357, #33363, #33365, #33371, #33372
- Failed merges:
bors added a commit that referenced this pull request May 3, 2016
Rollup of 14 pull requests

- Successful merges: #33277, #33294, #33314, #33322, #33333, #33338, #33339, #33340, #33343, #33357, #33363, #33365, #33371, #33372
- Failed merges:
bors added a commit that referenced this pull request May 4, 2016
Rollup of 14 pull requests

- Successful merges: #33277, #33294, #33314, #33322, #33333, #33338, #33339, #33340, #33343, #33357, #33363, #33365, #33371, #33372
- Failed merges:
bors added a commit that referenced this pull request May 4, 2016
Rollup of 14 pull requests

- Successful merges: #33277, #33294, #33314, #33322, #33333, #33338, #33339, #33340, #33343, #33357, #33363, #33365, #33371, #33372
- Failed merges:
@bors bors merged commit 4ba6bf4 into rust-lang:master May 5, 2016
@birkenfeld birkenfeld deleted the issue-23716 branch May 6, 2016 04:06
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