-
Notifications
You must be signed in to change notification settings - Fork 324
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
Enums shadowed by names in module #649
Comments
Did this use to work? I assume the version in the OP should be |
So, basically, make opaque items last, and make previous names override them. Fixes #649
So, basically, make opaque items last, and make previous names override them. Fixes #649
So, basically, make opaque items last, and make previous names override them. Fixes #649
Thanks, that seems to fix it! (and yes, I did mean Would you mind tagging a new release so that I also noticed a weird side effect where it's now flattening chain's of
(where we have This doesn't break functionality, but discards some of the API intent – should I open another issue for it? |
That seems like a consequence of #647, so it seems somewhat expected. Before that we'd generate non-compiling code (and you just happened to fix it up in the |
I'm seeing misbehavior where an
enum
in a module causes mistranslation of a struct containing a#[repr(u32)] enum
with the same name.Here's a very simple test case:
test.rs
:cbindgen.toml
Running
cbindgen 0.16.0
:Having the member be
struct BindingType ty
is invalid, because there is nostruct BindingType
in the header; it should instead beBindingType ty
.The text was updated successfully, but these errors were encountered: