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

Refer to trait methods by their fully qualified names #17

Merged
merged 2 commits into from
Feb 27, 2024

Conversation

DCNick3
Copy link
Contributor

@DCNick3 DCNick3 commented Feb 27, 2024

This ensures that whatever the context the macro is used in, no method conflicts will happen

One particular nasty case that was allowed is having std::fmt::Debug imported.

I've added a "test" for this. IMO it should really be a compiletest done with something like trybuild, but I think that setting it up is out-of-scope for this PR

I've also applied cargo fmt in a separate commit. My IDE keeps doing that to ensure that the code is always properly formatted, let me know if that's a problem

This ensures that whatever the context the macro is used in, no method conflicts will happen

One particular nasty case that was allowed is having `std::fmt::Debug` imported
@Lukas3674 Lukas3674 merged commit 29843a8 into Lukas3674:main Feb 27, 2024
@Lukas3674
Copy link
Owner

Thank you for the contribution, I didn't know that was a problem.

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.

2 participants