-
Notifications
You must be signed in to change notification settings - Fork 318
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
Const generics: Constants using const generic structs don't quite work. #767
Comments
This allows the workaround in #767 to work.
This allows the workaround in #767 to work.
#768 allows the workaround to well, work. |
This allows the workaround in #767 to work.
This allows the workaround in #767 to work.
Fwiw, not 100% sure but with cbindgen 0.24.3 i fail to build mozilla-beta (actually 102.0b6), which fails this way:
im not saying this is due/related to this issue but i had no issue building 102.0b5 with cbindgen 0.23.0 on OpenBSD. Will revert cbindgen to 0.24.2 to check if that's related to this issue or to other commits done since 0.23.0. |
That's known, and it's not a cbindgen bug. Removing the manual definition from webrender_ffi.h should fix this. See https://bugzilla.mozilla.org/show_bug.cgi?id=1773259#c5 and following. |
cc @jorendorff (not sure of a great fix for this, for the record, filing so that I don't lose track of it).
I wanted to do something like this today:
That generates:
Which looks like it could compile, but doesn't:
A workaround could be adding a type alias:
But that doesn't quite cut it either because it doesn't generate the inner expression:
I think that should be fixable tho.
The text was updated successfully, but these errors were encountered: