diff --git a/src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/AsyncHelpers.cs b/src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/AsyncHelpers.cs index e2ecf8aee702e7..1dffc747a357a4 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/AsyncHelpers.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/AsyncHelpers.cs @@ -11,7 +11,6 @@ namespace System.Runtime.CompilerServices { [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - [System.Diagnostics.CodeAnalysis.ExperimentalAttribute("SYSLIB5007", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")] public static partial class AsyncHelpers { #if CORECLR diff --git a/src/libraries/System.Runtime/ref/System.Runtime.cs b/src/libraries/System.Runtime/ref/System.Runtime.cs index 6869aeb397ceb0..3a487cb468f879 100644 --- a/src/libraries/System.Runtime/ref/System.Runtime.cs +++ b/src/libraries/System.Runtime/ref/System.Runtime.cs @@ -14138,7 +14138,6 @@ public static void RunModuleConstructor(System.ModuleHandle module) { } public delegate void TryCode(object? userData); } [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - [System.Diagnostics.CodeAnalysis.ExperimentalAttribute("SYSLIB5007", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")] public static partial class AsyncHelpers { [System.Runtime.Versioning.RequiresPreviewFeaturesAttribute] diff --git a/src/tests/async/fibonacci-without-yields-config-await/fibonacci-without-yields-config-await.cs b/src/tests/async/fibonacci-without-yields-config-await/fibonacci-without-yields-config-await.cs index c167418d9b88e9..6b2a231db2326f 100644 --- a/src/tests/async/fibonacci-without-yields-config-await/fibonacci-without-yields-config-await.cs +++ b/src/tests/async/fibonacci-without-yields-config-await/fibonacci-without-yields-config-await.cs @@ -7,8 +7,6 @@ using System.Runtime.CompilerServices; using Xunit; -#pragma warning disable SYSLIB5007 // 'System.Runtime.CompilerServices.AsyncHelpers' is for evaluation purposes only - public class Async2FibonacciWithYields { const int iterations = 3; diff --git a/src/tests/async/reflection/reflection-simple.cs b/src/tests/async/reflection/reflection-simple.cs index 7c446df5c7839a..b831831dc7b140 100644 --- a/src/tests/async/reflection/reflection-simple.cs +++ b/src/tests/async/reflection/reflection-simple.cs @@ -22,7 +22,6 @@ public static void MethodInfo_Invoke_TaskReturning() Assert.Equal(100, (int)(r.Result + d.Bar().Result)); } -#pragma warning disable SYSLIB5007 // 'System.Runtime.CompilerServices.AsyncHelpers' is for evaluation purposes only [Fact] public static void MethodInfo_Invoke_AsyncHelper() { @@ -37,7 +36,6 @@ public static void MethodInfo_Invoke_AsyncHelper() // dynamic d = FooTask(); // System.Runtime.CompilerServices.AsyncHelpers.Await(d); } -#pragma warning restore SYSLIB5007 private static async Task Foo() { @@ -164,9 +162,7 @@ public static void TypeBuilder_DefineMethod() // } ILGenerator ilGenerator = methodBuilder.GetILGenerator(); ilGenerator.Emit(OpCodes.Ldarg_0); -#pragma warning disable SYSLIB5007 // 'System.Runtime.CompilerServices.AsyncHelpers' is for evaluation purposes only var mi = typeof(System.Runtime.CompilerServices.AsyncHelpers).GetMethod("Await", BindingFlags.Static | BindingFlags.Public, new Type[] { typeof(Task) })!; -#pragma warning restore SYSLIB5007 ilGenerator.EmitCall(OpCodes.Call, mi, new Type[] { typeof(Task) }); ilGenerator.Emit(OpCodes.Ret);