Skip to content

Apply const parameter metadata#2384

Merged
kennykerr merged 3 commits intomasterfrom
const-params2
Mar 14, 2023
Merged

Apply const parameter metadata#2384
kennykerr merged 3 commits intomasterfrom
const-params2

Conversation

@kennykerr
Copy link
Copy Markdown
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