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

allow self and static references in trait #76

Merged
merged 4 commits into from Apr 1, 2019
Merged

allow self and static references in trait #76

merged 4 commits into from Apr 1, 2019

Conversation

Levivb
Copy link
Contributor

@Levivb Levivb commented Mar 23, 2019

Maybe I'm missing something since I can hardly believe I'm the first one to encounter this issue. But it seems self:: and static:: are not allowed in traits.

This pr fixes that

Copy link
Owner

@sirbrillig sirbrillig left a comment

Choose a reason for hiding this comment

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

This is great! Thank you! I made one small request to make sure the sniff still picked up warnings. It may also be interesting to see how this meshes with #77 (I think they will complement each other nicely).

Copy link
Owner

@sirbrillig sirbrillig left a comment

Choose a reason for hiding this comment

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

Thank you!

@sirbrillig sirbrillig merged commit 879da2d into sirbrillig:master Apr 1, 2019
@Levivb Levivb deleted the bugfix/trait-self-reference branch April 2, 2019 12:37
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

2 participants