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

Harden generic type parameter binding #2791

Merged
merged 2 commits into from
Jan 15, 2024
Merged

Harden generic type parameter binding #2791

merged 2 commits into from
Jan 15, 2024

Conversation

kennykerr
Copy link
Collaborator

Some minor housekeeping around generic type parameter binding.

  • The internal abi helper wasn't needed as transmute_copy works just fine.
  • The into_param trait function is rightly unsafe.
  • Added some more test coverage to cover all paths.

@kennykerr
Copy link
Collaborator Author

Weird how 1.62 will warn about unnecessary unsafe blocks but nightly doesn't pick it up.

https://github.com/microsoft/windows-rs/actions/runs/7506895207/job/20439317989

@kennykerr kennykerr merged commit 0564375 into master Jan 15, 2024
65 checks passed
@kennykerr kennykerr deleted the into-param-type branch January 15, 2024 02:15
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