-
Notifications
You must be signed in to change notification settings - Fork 9
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
Handle expansion failure #66
base: master
Are you sure you want to change the base?
Conversation
Thanks for working on #65. I'll test out this branch as soon as I can and report back here. |
I found the following problems with
|
@Emoun can you show me the code for failing macro? I'll add this macro as an example/test if it's small enough. Does manually calling |
I'm trying things on #[duplicate::duplicate(refs(T); [& T]; [T])]
fn from(x: refs(Bits<1, false>)) -> bool {
x.value == 1
} Expanding this will panic in I tried running |
Btw, I have cargo-expand v1.0.9 |
@Emoun, thank you! I'll explore this issue further. |
I'll have a look at it this weekend and report back. |
I've given the update a try and, in short, it seems for me to work well enough to be usable for my use cases. I found one issue that I think is critical, though I specifically don't use
Below are some of the irregularities I have found. While I think they should be addressed, they are not blocking for my use cases and mostly affect usability.
|
@eupn, do you have an ETA on when this might get merged and an eventual new release? Thank you for all your hard work on this nice crate. |
@Emoun thanks for kind words! I'll try my best to publish a new release next week. |
@eupn, sorry to bother again, but I'm still very much interested in this PR getting merged/released even without the last few fixes I highlighted above. I hope you can find some time to look into it. |
Closes #65.
Please check with this branch, @Emoun. Should you get no issues, I'll merge this and release a new version.