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 UnrepresentableType error message #47

Merged
merged 1 commit into from
Apr 28, 2020

Conversation

caelunshun
Copy link
Contributor

@caelunshun caelunshun commented Apr 27, 2020

The current implementation of the unrepresentable macro attempts to pass $type
as the message for the UnrepresentableType error. However, macro parameters
are not expanded inside string literals, so the error message appeared as "$type" instead
of "u8" or "u16." The bug was fixed using the stringify macro.

The current implementation of the `unrepresentable` macro attempts to pass `$type`
as the message for the `UnrepresentableType` error. However, macro parameters
are not expanded inside strings, so the error message would appear as "$type" instead
of "u8" or "u16." The bug was fixed using the `stringify` macro.

bla
@atheriel
Copy link
Collaborator

Ah, good catch. Thanks!

@atheriel atheriel merged commit 2f39b55 into PistonDevelopers:master Apr 28, 2020
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