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

Check for generic structs in "needs marshalling" check #90836

Merged
merged 11 commits into from
Sep 1, 2023

Conversation

jtschuster
Copy link
Member

Fixes #90828.

@jkotas
Copy link
Member

jkotas commented Aug 18, 2023

/azp run runtime-extra-platforms

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@jkoritzinsky jkoritzinsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a negative test that throws InvalidProgramException with a generic class type?

@jtschuster
Copy link
Member Author

Can we add a negative test that throws InvalidProgramException with a generic class type?

I don't think we can, the analyzer will create an error for classes and structs with NonBlittable generic parameters.

@jtschuster
Copy link
Member Author

/azp run runtime-extra-platforms

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Co-authored-by: Jeremy Koritzinsky <[email protected]>
@jtschuster
Copy link
Member Author

/azp run runtime-extra-platforms

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jtschuster jtschuster merged commit 737d85a into dotnet:main Sep 1, 2023
165 of 177 checks passed
@ghost ghost locked as resolved and limited conversation to collaborators Oct 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Blittability check doesn't account for generic structs
4 participants