Revert variance changes for trimming attributes validation#123577
Closed
Revert variance changes for trimming attributes validation#123577
Conversation
Co-authored-by: agocke <515774+agocke@users.noreply.github.com>
…ariance Co-authored-by: agocke <515774+agocke@users.noreply.github.com>
Co-authored-by: agocke <515774+agocke@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix trimming attributes to handle variance correctly
Implement variance-aware validation for trimming attributes in OHI scenarios
Jan 24, 2026
agocke
reviewed
Jan 24, 2026
src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/Dataflow/FlowAnnotations.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: agocke <515774+agocke@users.noreply.github.com>
Contributor
|
Tagging subscribers to this area: @agocke, @dotnet/illink |
Member
|
Co-authored-by: agocke <515774+agocke@users.noreply.github.com>
Copilot stopped work on behalf of
agocke due to an error
January 25, 2026 00:19
Copilot stopped work on behalf of
agocke due to an error
January 25, 2026 00:23
This was referenced Jan 25, 2026
Open
Copilot stopped work on behalf of
agocke due to an error
January 25, 2026 22:39
Co-authored-by: agocke <515774+agocke@users.noreply.github.com>
Copilot
AI
changed the title
Implement variance-aware validation for trimming attributes in OHI scenarios
Revert variance changes for trimming attributes validation
Feb 16, 2026
Contributor
|
Draft Pull Request was automatically closed for 30 days of inactivity. Please let us know if you'd like to reopen it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Reverts attempted variance handling for
DynamicallyAccessedMembersandRequires*attributes in override/interface implementation scenarios.The variance approach was incorrect:
Changes
FlowAnnotations.ValidateMethodAnnotationsAreSamein ILLink and NativeAOTDynamicallyAccessedMembersAnalyzer.VerifyDamOnMethodsMatchin Roslyn AnalyzerVirtualMethodHierarchyDataflowAnnotationValidationandRequiresAttributeMismatchTest Results
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.