-
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
Using mutagen breaks type inference in the existing program #164
Comments
This is indeed unfortunate. I investigated this same issue some time ago: https://users.rust-lang.org/t/unexpected-compilation-error-with-procedural-macros/34310 The problem also appears when adding |
Ah so based on that issue, and from perusing the code, I suspect that just removing the dependency on
Thus, I can't think of where else the issue could be coming from. From a quick skim of the code, it looks like it should be pretty straightforward to replace the existing uses of the |
I thought
Edit: This analysis is incorrect. I will try to substitute with |
adding |
Given the following
lib.rs
:Running
cargo check --tests
succeeds. However, if we add an attribute,#[cfg_attr(test, mutagen::mutate)]
, tofn foo() {}
, thencargo check --tests
fails:Version information
Using Mutagen pulled from this repository at 94321e5.
The text was updated successfully, but these errors were encountered: