From 46cc0f6f74b38e5e6581d1b488ea3b2b100759e7 Mon Sep 17 00:00:00 2001 From: Matt Thalman Date: Wed, 19 Jul 2023 14:22:13 -0500 Subject: [PATCH] Add runtime patch to remove unnecessary suppressions --- ...0001-Remove-unnecessary-suppressions.patch | 64 +++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 src/SourceBuild/patches/runtime/0001-Remove-unnecessary-suppressions.patch diff --git a/src/SourceBuild/patches/runtime/0001-Remove-unnecessary-suppressions.patch b/src/SourceBuild/patches/runtime/0001-Remove-unnecessary-suppressions.patch new file mode 100644 index 000000000000..c31515591e3e --- /dev/null +++ b/src/SourceBuild/patches/runtime/0001-Remove-unnecessary-suppressions.patch @@ -0,0 +1,64 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Matt Thalman +Date: Wed, 19 Jul 2023 09:57:31 -0500 +Subject: [PATCH] Remove unnecessary suppressions + +Backport: https://github.com/dotnet/runtime/issues/89206 +--- + .../src/CompatibilitySuppressions.xml | 12 ------------ + .../src/CompatibilitySuppressions.xml | 6 ------ + 2 files changed, 18 deletions(-) + +diff --git a/src/coreclr/nativeaot/System.Private.CoreLib/src/CompatibilitySuppressions.xml b/src/coreclr/nativeaot/System.Private.CoreLib/src/CompatibilitySuppressions.xml +index c410fee4e53..799cd7ab69d 100644 +--- a/src/coreclr/nativeaot/System.Private.CoreLib/src/CompatibilitySuppressions.xml ++++ b/src/coreclr/nativeaot/System.Private.CoreLib/src/CompatibilitySuppressions.xml +@@ -800,10 +800,6 @@ + CP0001 + T:System.Diagnostics.DebugAnnotations + +- +- CP0001 +- T:System.Diagnostics.DebuggerGuidedStepThroughAttribute +- + + CP0001 + T:System.MDArray +@@ -868,10 +864,6 @@ + CP0001 + T:System.Reflection.RuntimeAssemblyName + +- +- CP0001 +- T:System.Runtime.CompilerServices.EagerStaticClassConstructionAttribute +- + + CP0001 + T:System.Runtime.CompilerServices.ForceDictionaryLookupsAttribute +@@ -1006,8 +998,4 @@ + ref/net8.0/System.Private.CoreLib.dll + lib/net8.0/System.Private.CoreLib.dll + +- +- CP0016 +- M:System.Runtime.InteropServices.Marshal.GetObjectForNativeVariant``1(System.IntPtr)->T?:[T:System.Diagnostics.CodeAnalysis.MaybeNullAttribute] +- + +\ No newline at end of file +diff --git a/src/libraries/System.Runtime.InteropServices.JavaScript/src/CompatibilitySuppressions.xml b/src/libraries/System.Runtime.InteropServices.JavaScript/src/CompatibilitySuppressions.xml +index ce09898be3a..8e4cf516027 100644 +--- a/src/libraries/System.Runtime.InteropServices.JavaScript/src/CompatibilitySuppressions.xml ++++ b/src/libraries/System.Runtime.InteropServices.JavaScript/src/CompatibilitySuppressions.xml +@@ -43,12 +43,6 @@ + ref/net8.0/System.Runtime.InteropServices.JavaScript.dll + runtimes/browser/lib/net8.0/System.Runtime.InteropServices.JavaScript.dll + +- +- CP0001 +- T:System.Runtime.InteropServices.JavaScript.WebWorker +- ref/net8.0/System.Runtime.InteropServices.JavaScript.dll +- runtimes/browser/lib/net8.0/System.Runtime.InteropServices.JavaScript.dll +- + + CP0001 + T:System.Runtime.InteropServices.JavaScript.CancelablePromise