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

Fix the implementation of Formatting traits when other formatting traits were present in scope. #105

Merged
merged 1 commit into from
May 29, 2017

Conversation

CensoredUsername
Copy link
Contributor

@CensoredUsername CensoredUsername commented May 29, 2017

The formatting impls did not explicitly specify which trait was being invoked, which lead to conflicting implementation errors if any other formatting trait was present in scope before the bitflags! invocation (even just a use std::fmt::Display beforehand was enough to cause compilation failures.

…ding the .fmt method were brought into scope before the bitflags macro was invoked
Copy link
Contributor

@dtolnay dtolnay left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thank you!

@dtolnay dtolnay merged commit 8e8569c into bitflags:master May 29, 2017
@dtolnay
Copy link
Contributor

dtolnay commented May 29, 2017

I published this in bitflags 0.9.1.

@CensoredUsername
Copy link
Contributor Author

Thanks for the quick response!

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