-
Notifications
You must be signed in to change notification settings - Fork 35
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
Mutation incorrectly infers integer literals #157
Comments
Types are not corrupted. They are incorrectly inferred. Through the code that is generated by mutagen, Rust can no longer do correct propagation of types and the default type for the integer This is a general problem. There are code snippets where the macro has not enough information to perform a transformation that never vail to infer correct types. It is possible to fix the given snippet and I will try to extend the current detection mechanism for integer expressions. |
Right sorry, English isn't my native language :) Thanks. |
@power-fungus this used to work. What changed? |
Indeed. I will investigate this. Stay tuned. |
Minimally reproducible example:
Without the macro it compiles fine. with the macro it returns the following:
mutagen dep: git+https://github.com/llogiq/mutagen.git#99d9e12bf4e28e3a734b36f216650cec09a54c6c
The text was updated successfully, but these errors were encountered: