-
Notifications
You must be signed in to change notification settings - Fork 192
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
Make extensions names constant #238
Comments
This is not currently possible, as |
It is now. |
Oh nice, I've totally missed that. I'll fix it after I am done refactoring the generator. |
Additionally, this issue is pretty much the same as #79. |
Yeah closing this in favor of #79 |
It is not. The nightly feature in question is |
Oh wow, i didn't know that rustdoc is not to trust sometimes. |
I guess we can still make it happen by copying the implementation of pub const unsafe fn from_bytes_with_nul_unchecked(bytes: &[u8]) -> &CStr {
&*(bytes as *const [u8] as *const CStr)
} |
If it were that simple it would already be stable:
|
Oh, i thought it was some weird thing where a perfectly working function is still not stable. |
The 'name' functions from e.g. "ash::extensions::khr::Surface" and other extensions should be const.
The text was updated successfully, but these errors were encountered: