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

ty: Deal with using shadow types. #2372

Closed
wants to merge 1 commit into from

Conversation

emilio
Copy link
Contributor

@emilio emilio commented Dec 14, 2022

Bindgen will fail to detect the size_t typedef if it comes from a using declaration, because we'd try to to look at the canonical type.

This is the root cause of
https://bugzilla.mozilla.org/show_bug.cgi?id=1795899, an https://bugzilla.mozilla.org/show_bug.cgi?id=1795899#c30 is the reduced test-case.

This patch requires an llvm patch to expose the shadow declarations, which I'll submit upstream. This also shows some other progressions as well.

Bindgen will fail to detect the size_t typedef if it comes from a using
declaration, because we'd try to to look at the canonical type.

This is the root cause of
https://bugzilla.mozilla.org/show_bug.cgi?id=1795899, an
https://bugzilla.mozilla.org/show_bug.cgi?id=1795899#c30 is the reduced
test-case.

This patch requires an llvm patch to expose the shadow declarations,
which I'll submit upstream. This also shows some other progressions as
well.
@bors-servo
Copy link

☔ The latest upstream changes (presumably 2034a0f) made this pull request unmergeable. Please resolve the merge conflicts.

@pvdrz pvdrz deleted the branch rust-lang:master November 2, 2023 17:50
@pvdrz pvdrz closed this Nov 2, 2023
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.

3 participants