-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Conversation
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; |
There was a problem hiding this comment.
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
@bors delegate+ r=Manishearth this once you add the test. |
✌️ @birkenfeld can now approve this pull request |
@Manishearth sorry, what exactly do I do? |
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
@bors r=Manishearth |
📌 Commit 4ba6bf4 has been approved by |
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
The implementation mirrors the one for "constant defined here" annotation used for constant patterns in the irrefutable-pattern case.
Fixes: #23716