diff --git a/docs/project/list-of-diagnostics.md b/docs/project/list-of-diagnostics.md index cfb593d70b54d8..5387dd5a0d7483 100644 --- a/docs/project/list-of-diagnostics.md +++ b/docs/project/list-of-diagnostics.md @@ -86,6 +86,7 @@ The PR that reveals the implementation of the ` - $(NoWarn);SYSLIB0003;SYSLIB0004;SYSLIB0015;SYSLIB0017;SYSLIB0021;SYSLIB0022;SYSLIB0023;SYSLIB0025 + $(NoWarn);SYSLIB0003;SYSLIB0004;SYSLIB0015;SYSLIB0017;SYSLIB0021;SYSLIB0022;SYSLIB0023;SYSLIB0025;SYSLIB0032 diff --git a/src/libraries/System.Private.CoreLib/src/System/Runtime/ExceptionServices/HandleProcessCorruptedStateExceptionsAttribute.cs b/src/libraries/System.Private.CoreLib/src/System/Runtime/ExceptionServices/HandleProcessCorruptedStateExceptionsAttribute.cs index d77d20e85c0ef9..0fc65d64151a9b 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Runtime/ExceptionServices/HandleProcessCorruptedStateExceptionsAttribute.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Runtime/ExceptionServices/HandleProcessCorruptedStateExceptionsAttribute.cs @@ -6,6 +6,7 @@ namespace System.Runtime.ExceptionServices // This attribute can be applied to methods to indicate that ProcessCorruptedState // Exceptions should be delivered to them. [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)] + [Obsolete(Obsoletions.CorruptedStateRecoveryMessage, DiagnosticId = Obsoletions.CorruptedStateRecoveryDiagId, UrlFormat = Obsoletions.SharedUrlFormat)] public sealed class HandleProcessCorruptedStateExceptionsAttribute : Attribute { public HandleProcessCorruptedStateExceptionsAttribute() diff --git a/src/libraries/System.Runtime/ref/System.Runtime.cs b/src/libraries/System.Runtime/ref/System.Runtime.cs index 380e0a2e7f1009..93f41f4c996dcb 100644 --- a/src/libraries/System.Runtime/ref/System.Runtime.cs +++ b/src/libraries/System.Runtime/ref/System.Runtime.cs @@ -13234,6 +13234,7 @@ public FirstChanceExceptionEventArgs(System.Exception exception) { } public System.Exception Exception { get { throw null; } } } [System.AttributeUsageAttribute(System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)] + [System.ObsoleteAttribute("Recovery from corrupted process state exceptions is not supported; HandleProcessCorruptedStateExceptionsAttribute is ignored.", DiagnosticId = "SYSLIB0032", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")] public sealed partial class HandleProcessCorruptedStateExceptionsAttribute : System.Attribute { public HandleProcessCorruptedStateExceptionsAttribute() { } diff --git a/src/libraries/System.Runtime/tests/System/Runtime/ExceptionServices/HandleProcessCorruptedStateExceptions.cs b/src/libraries/System.Runtime/tests/System/Runtime/ExceptionServices/HandleProcessCorruptedStateExceptions.cs index d594b070419129..99fee3dbf5b146 100644 --- a/src/libraries/System.Runtime/tests/System/Runtime/ExceptionServices/HandleProcessCorruptedStateExceptions.cs +++ b/src/libraries/System.Runtime/tests/System/Runtime/ExceptionServices/HandleProcessCorruptedStateExceptions.cs @@ -10,6 +10,8 @@ using Microsoft.DotNet.RemoteExecutor; using Xunit; +#pragma warning disable SYSLIB0032 // HandleProcessCorruptedStateExceptionsAttribute is obsolete + namespace System.Runtime.ExceptionServices.Tests { public class HandleProcessCorruptedStateExceptionsTests diff --git a/src/tests/JIT/RyuJIT/DoWhileBndChk.cs b/src/tests/JIT/RyuJIT/DoWhileBndChk.cs index 68f260f06b57ee..9ba5a944f8adee 100644 --- a/src/tests/JIT/RyuJIT/DoWhileBndChk.cs +++ b/src/tests/JIT/RyuJIT/DoWhileBndChk.cs @@ -5,6 +5,8 @@ // // Reference: TF Bug 150041 +#pragma warning disable SYSLIB0032 // HandleProcessCorruptedStateExceptionsAttribute is obsolete + using System; using System.Runtime.ExceptionServices;