Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix trait implementation imports in star imports #588

Merged
merged 7 commits into from
Jan 6, 2022
Merged

Conversation

sezna
Copy link
Contributor

@sezna sezna commented Jan 6, 2022

This is the resolution to a bug found by @ControlCplusControlV in Discord. Trait implementations were not being pulled in to the local namespace when a star import was being used to bring the trait in. This doesn't matter with operators, since operators use the fully qualified method path (e.g. std::core::ops), but if you want to directly call a method, this falls apart.

@sezna sezna added bug Something isn't working compiler General compiler. Should eventually become more specific as the issue is triaged labels Jan 6, 2022
@sezna sezna self-assigned this Jan 6, 2022
Copy link
Contributor

@adlerjohn adlerjohn left a comment

Choose a reason for hiding this comment

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

Seems reasonable. Will defer to others for actual review.

Copy link
Contributor

@eureka-cpu eureka-cpu left a comment

Choose a reason for hiding this comment

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

updating should remove the two lints now

@sezna sezna merged commit 84101e0 into master Jan 6, 2022
@sezna sezna deleted the sezna/nebula_bugfix branch January 6, 2022 21:37
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working compiler General compiler. Should eventually become more specific as the issue is triaged
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants