Skip to content

Conversation

tlakollo
Copy link
Contributor

@tlakollo tlakollo commented May 9, 2022

Match analyzer and linker requires methods to be more similar according to their behavior
Sync diagnostic Id in NativeAOT with the information in linker

@tlakollo tlakollo requested review from sbomer and vitek-karas May 9, 2022 22:30
@tlakollo tlakollo self-assigned this May 9, 2022
@tlakollo tlakollo requested a review from marek-safar as a code owner May 9, 2022 22:30
Comment on lines 190 to 191
RequiresDynamicCodeOnStaticConstructor = 3052,
COMInteropNotSupportedInFullAOT = 3052,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Notice that there is a collision on the code IL3052, I don't have a strong preference on which one should remain IL3052 and which one should change, but one should be changed.

Copy link
Member

Choose a reason for hiding this comment

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

Did we ship one of them in .NET 6? If only one, then we should keep that one as is and change the new one.
If not... I guess just pick one...

Copy link
Contributor Author

@tlakollo tlakollo May 10, 2022

Choose a reason for hiding this comment

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

COMInteropNotSupportedInFullAOT in NativeAOT seems to exist even before runtimelab project existed (probably copied from CoreRT), so probably I will leave that as 3052 even if we haven't shipped NativeAOT yet

Comment on lines 190 to 191
RequiresDynamicCodeOnStaticConstructor = 3052,
COMInteropNotSupportedInFullAOT = 3052,
Copy link
Member

Choose a reason for hiding this comment

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

Did we ship one of them in .NET 6? If only one, then we should keep that one as is and change the new one.
If not... I guess just pick one...

@tlakollo tlakollo requested a review from vitek-karas May 10, 2022 13:38
@tlakollo tlakollo merged commit 6aaa900 into dotnet:main May 10, 2022
@tlakollo tlakollo deleted the MatchRequiresBetweenLinkerAndAnalyzer branch May 10, 2022 21:29
agocke pushed a commit to dotnet/runtime that referenced this pull request Nov 16, 2022
Match analyzer and linker methods that handle Requires to be more similar according to their behavior
Delete non existent ILLink.xsd from projitems
Fixup IL3052 and add SharedStrings from NativeAOT

Commit migrated from dotnet/linker@6aaa900
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants