Skip to content

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

Merged
bors merged 1 commit into
rust-lang:masterfrom
birkenfeld:issue-23716
May 5, 2016
Merged

resolve: print location of static for "static in pattern" error#33340
bors merged 1 commit into
rust-lang:masterfrom
birkenfeld:issue-23716

Conversation

@birkenfeld

Copy link
Copy Markdown
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
Copy Markdown
Contributor

r? @Aatch

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

Comment threadsrc/test/compile-fail/issue-23716.rs Outdated

Copy link
Copy Markdown
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
Copy Markdown
Member

@bors delegate+

r=Manishearth this once you add the test.

@bors

bors commented May 2, 2016

Copy link
Copy Markdown
Collaborator

✌️ @birkenfeld can now approve this pull request

@birkenfeld

Copy link
Copy Markdown
ContributorAuthor

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

@Manishearth

Copy link
Copy Markdown
Member

yes, with an o instead of a 0

@birkenfeld

birkenfeld commented May 2, 2016

Copy link
Copy Markdown
ContributorAuthor

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
Copy Markdown
ContributorAuthor

@bors r=Manishearth

@bors

bors commented May 3, 2016

Copy link
Copy Markdown
Collaborator

📌 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
bors added a commit that referenced this pull request May 3, 2016
bors added a commit that referenced this pull request May 4, 2016
bors added a commit that referenced this pull request May 4, 2016
@bors
bors merged commit 4ba6bf4 into rust-lang:masterMay 5, 2016
@birkenfeld
birkenfeld deleted the issue-23716 branch May 6, 2016 04:06
Sign up for freeto 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

@birkenfeld@rust-highfive@Manishearth@bors@Aatch