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

Apply const parameter metadata #2384

Merged
merged 3 commits into from
Mar 14, 2023
Merged

Apply const parameter metadata #2384

merged 3 commits into from
Mar 14, 2023

Conversation

kennykerr
Copy link
Collaborator

@kennykerr kennykerr commented Mar 14, 2023

More Win32 metadata now employs a const attribute to indicate const parameters and return types, so we can now use that to apply const more uniformly. Since Rust distinguishes between const and mut pointers, I added distinct to_const_type and to_const_ptr type transformations to more clearly distinguish between what is actually modified in different instances.

With this update, the fix for microsoft/win32metadata#1454 should now flow automatically into windows-rs.

@kennykerr kennykerr merged commit 649ace3 into master Mar 14, 2023
@kennykerr kennykerr deleted the const-params2 branch March 14, 2023 20:51
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.

1 participant