Trim RefSafetyRulesAttribute when trimming aggressively (#88717)
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
Thu, 13 Jul 2023 04:50:28 +0000 (13:50 +0900)
committerGitHub <noreply@github.com>
Thu, 13 Jul 2023 04:50:28 +0000 (13:50 +0900)
This is another attribute that Roslyn uses for its own purposes only.

src/libraries/System.Private.CoreLib/src/ILLink/ILLink.LinkAttributes.Shared.xml

index a66cc3b..b3f72c0 100644 (file)
     <type fullname="System.Runtime.CompilerServices.ScopedRefAttribute">
       <attribute internal="RemoveAttributeInstances" />
     </type>
+    <type fullname="System.Runtime.CompilerServices.RefSafetyRulesAttribute">
+      <attribute internal="RemoveAttributeInstances" />
+    </type>
 
     <!-- Microsoft.CodeAnalysis -->
     <type fullname="Microsoft.CodeAnalysis.EmbeddedAttribute">