From 7c88b9ba691d65014934637acfec27f1a985cea9 Mon Sep 17 00:00:00 2001 From: Mateo Torres-Ruiz Date: Thu, 16 Sep 2021 19:32:11 +0000 Subject: Change occurrences of 'mono/linker' to 'dotnet/linker' (#2277) --- .../AnnotatedMembersAccessedViaReflection.cs | 2 +- .../DataFlow/MethodReturnParameterDataFlow.cs | 2 +- .../DataFlow/PropertyDataFlow.cs | 2 +- .../DynamicDependencies/DynamicDependencyMethod.cs | 2 +- ...odInNonReferencedAssemblyWithSweptReferences.cs | 2 +- .../Reflection/ActivatorCreateInstance.cs | 2 +- ...mblyImportedViaReflectionWithSweptReferences.cs | 2 +- .../Reflection/ObjectGetType.cs | 10 +++++----- .../Reflection/TypeHierarchyReflectionWarnings.cs | 2 +- .../RequiresUnreferencedCodeCapability.cs | 22 +++++++++++----------- .../TypeForwarding/SecurityAttributeScope.cs | 2 +- ...ricIsDynamicallyAccessedWithAssemblyCopyUsed.cs | 2 +- 12 files changed, 26 insertions(+), 26 deletions(-) (limited to 'test/Mono.Linker.Tests.Cases') diff --git a/test/Mono.Linker.Tests.Cases/DataFlow/AnnotatedMembersAccessedViaReflection.cs b/test/Mono.Linker.Tests.Cases/DataFlow/AnnotatedMembersAccessedViaReflection.cs index 9f1ea54b6..5c8518ac4 100644 --- a/test/Mono.Linker.Tests.Cases/DataFlow/AnnotatedMembersAccessedViaReflection.cs +++ b/test/Mono.Linker.Tests.Cases/DataFlow/AnnotatedMembersAccessedViaReflection.cs @@ -516,7 +516,7 @@ namespace Mono.Linker.Tests.Cases.DataFlow typeof (AnnotatedGenerics).RequiresPublicMethods (); } - // This should produce IL2071 https://github.com/mono/linker/issues/2144 + // This should produce IL2071 https://github.com/dotnet/linker/issues/2144 [ExpectedWarning ("IL2070", "MakeGenericMethod")] static void InstantiateGeneric (Type type = null) { diff --git a/test/Mono.Linker.Tests.Cases/DataFlow/MethodReturnParameterDataFlow.cs b/test/Mono.Linker.Tests.Cases/DataFlow/MethodReturnParameterDataFlow.cs index c46e9ab54..8dfe13492 100644 --- a/test/Mono.Linker.Tests.Cases/DataFlow/MethodReturnParameterDataFlow.cs +++ b/test/Mono.Linker.Tests.Cases/DataFlow/MethodReturnParameterDataFlow.cs @@ -181,7 +181,7 @@ namespace Mono.Linker.Tests.Cases.DataFlow return null; } - // https://github.com/mono/linker/issues/2025 + // https://github.com/dotnet/linker/issues/2025 // Ideally this should not warn [UnrecognizedReflectionAccessPattern (typeof (MethodReturnParameterDataFlow), nameof (ReturnWithRequirementsAlwaysThrows), new Type[] { }, returnType: typeof (Type), messageCode: "IL2063")] diff --git a/test/Mono.Linker.Tests.Cases/DataFlow/PropertyDataFlow.cs b/test/Mono.Linker.Tests.Cases/DataFlow/PropertyDataFlow.cs index 102180de2..bcf0cb2a8 100644 --- a/test/Mono.Linker.Tests.Cases/DataFlow/PropertyDataFlow.cs +++ b/test/Mono.Linker.Tests.Cases/DataFlow/PropertyDataFlow.cs @@ -321,7 +321,7 @@ namespace Mono.Linker.Tests.Cases.DataFlow public static void Test () { - // https://github.com/mono/linker/issues/2196 + // https://github.com/dotnet/linker/issues/2196 // TestPropertyWithAttributeMarkingSelfType.TestProperty = true; } } diff --git a/test/Mono.Linker.Tests.Cases/DynamicDependencies/DynamicDependencyMethod.cs b/test/Mono.Linker.Tests.Cases/DynamicDependencies/DynamicDependencyMethod.cs index a687f3f69..206c4d146 100644 --- a/test/Mono.Linker.Tests.Cases/DynamicDependencies/DynamicDependencyMethod.cs +++ b/test/Mono.Linker.Tests.Cases/DynamicDependencies/DynamicDependencyMethod.cs @@ -170,7 +170,7 @@ namespace Mono.Linker.Tests.Cases.DynamicDependencies [KeptBackingField] internal string Property2 { [Kept] get; set; } - // For now, Condition has no effect: https://github.com/mono/linker/issues/1231 + // For now, Condition has no effect: https://github.com/dotnet/linker/issues/1231 [Kept] internal void ConditionalTest () { diff --git a/test/Mono.Linker.Tests.Cases/DynamicDependencies/DynamicDependencyMethodInNonReferencedAssemblyWithSweptReferences.cs b/test/Mono.Linker.Tests.Cases/DynamicDependencies/DynamicDependencyMethodInNonReferencedAssemblyWithSweptReferences.cs index 58e20a02d..4fca50cfa 100644 --- a/test/Mono.Linker.Tests.Cases/DynamicDependencies/DynamicDependencyMethodInNonReferencedAssemblyWithSweptReferences.cs +++ b/test/Mono.Linker.Tests.Cases/DynamicDependencies/DynamicDependencyMethodInNonReferencedAssemblyWithSweptReferences.cs @@ -9,7 +9,7 @@ namespace Mono.Linker.Tests.Cases.DynamicDependencies [SetupCompileBefore ("unusedreference.dll", new[] { "Dependencies/UnusedAssemblyDependency.cs" })] [SetupCompileBefore ("reference.dll", new[] { "Dependencies/AssemblyDependency.cs" }, addAsReference: false)] [SetupCompileBefore ("library.dll", new[] { "Dependencies/AssemblyDependencyWithMultipleReferences.cs" }, new[] { "reference.dll", "unusedreference.dll" }, addAsReference: false)] - // TODO: keep library even if type is not found in it (https://github.com/mono/linker/issues/1795) + // TODO: keep library even if type is not found in it (https://github.com/dotnet/linker/issues/1795) // [KeptAssembly ("library")] public class DynamicDependencyMethodInNonReferencedAssemblyWithSweptReferences { diff --git a/test/Mono.Linker.Tests.Cases/Reflection/ActivatorCreateInstance.cs b/test/Mono.Linker.Tests.Cases/Reflection/ActivatorCreateInstance.cs index 02129fb6c..7eb814fe1 100644 --- a/test/Mono.Linker.Tests.Cases/Reflection/ActivatorCreateInstance.cs +++ b/test/Mono.Linker.Tests.Cases/Reflection/ActivatorCreateInstance.cs @@ -469,7 +469,7 @@ namespace Mono.Linker.Tests.Cases.Reflection [Kept] [ExpectedWarning ("IL2091", nameof (Activator), nameof (Activator.CreateInstance) + "")] // Warnings are currently duplicated in NETCORE (annotation and intrinsics) - but they're not identical in this case. - // See https://github.com/mono/linker/issues/1483 + // See https://github.com/dotnet/linker/issues/1483 private static void TestCreateInstanceOfTWithNoConstraint () { Activator.CreateInstance (); diff --git a/test/Mono.Linker.Tests.Cases/Reflection/AssemblyImportedViaReflectionWithSweptReferences.cs b/test/Mono.Linker.Tests.Cases/Reflection/AssemblyImportedViaReflectionWithSweptReferences.cs index 7a6abf792..5cecf5e5d 100644 --- a/test/Mono.Linker.Tests.Cases/Reflection/AssemblyImportedViaReflectionWithSweptReferences.cs +++ b/test/Mono.Linker.Tests.Cases/Reflection/AssemblyImportedViaReflectionWithSweptReferences.cs @@ -9,7 +9,7 @@ namespace Mono.Linker.Tests.Cases.Reflection [SetupCompileBefore ("unusedreference.dll", new[] { "Dependencies/UnusedAssemblyDependency.cs" })] [SetupCompileBefore ("reference.dll", new[] { "Dependencies/AssemblyDependency.cs" }, addAsReference: false)] [SetupCompileBefore ("library.dll", new[] { "Dependencies/AssemblyDependencyWithMultipleReferences.cs" }, new[] { "reference.dll", "unusedreference.dll" }, addAsReference: false)] - // TODO: keep library even if type is not found in it (https://github.com/mono/linker/issues/1795) + // TODO: keep library even if type is not found in it (https://github.com/dotnet/linker/issues/1795) // [KeptAssembly ("library")] public class AssemblyImportedViaReflectionWithSweptReferences { diff --git a/test/Mono.Linker.Tests.Cases/Reflection/ObjectGetType.cs b/test/Mono.Linker.Tests.Cases/Reflection/ObjectGetType.cs index a683287ff..17b67d0ae 100644 --- a/test/Mono.Linker.Tests.Cases/Reflection/ObjectGetType.cs +++ b/test/Mono.Linker.Tests.Cases/Reflection/ObjectGetType.cs @@ -279,14 +279,14 @@ namespace Mono.Linker.Tests.Cases.Reflection struct BasicAnnotatedStruct { // Handle boxing and unboxing operations - // https://github.com/mono/linker/issues/1951 + // https://github.com/dotnet/linker/issues/1951 // [Kept] public void UsedMethod () { } public void UnusedMethod () { } } [Kept] - // https://github.com/mono/linker/issues/1951 + // https://github.com/dotnet/linker/issues/1951 // This should not warn [ExpectedWarning ("IL2075", "GetMethod")] static void TestStruct (BasicAnnotatedStruct instance) @@ -667,7 +667,7 @@ namespace Mono.Linker.Tests.Cases.Reflection public class Derived : Base { // new() doesn't propagate static type - // https://github.com/mono/linker/issues/1952 + // https://github.com/dotnet/linker/issues/1952 // [Kept] public void Method () { } } @@ -1390,7 +1390,7 @@ namespace Mono.Linker.Tests.Cases.Reflection [KeptMember (".ctor()")] class Derived : AnnotatedBase { - // https://github.com/mono/linker/issues/2027 + // https://github.com/dotnet/linker/issues/2027 // [Kept] public void Method () { } } @@ -1399,7 +1399,7 @@ namespace Mono.Linker.Tests.Cases.Reflection static IEnumerable GetInstances () => new AnnotatedBase[] { new Derived () }; [Kept] - // https://github.com/mono/linker/issues/2027 + // https://github.com/dotnet/linker/issues/2027 [ExpectedWarning ("IL2075", nameof (Type.GetType))] public static void Test () { diff --git a/test/Mono.Linker.Tests.Cases/Reflection/TypeHierarchyReflectionWarnings.cs b/test/Mono.Linker.Tests.Cases/Reflection/TypeHierarchyReflectionWarnings.cs index 9ca2ff3ae..dc9796633 100644 --- a/test/Mono.Linker.Tests.Cases/Reflection/TypeHierarchyReflectionWarnings.cs +++ b/test/Mono.Linker.Tests.Cases/Reflection/TypeHierarchyReflectionWarnings.cs @@ -267,7 +267,7 @@ namespace Mono.Linker.Tests.Cases.Reflection { [Kept] [KeptAttributeAttribute (typeof (RequiresUnreferencedCodeAttribute))] - // This should produce a warning: https://github.com/mono/linker/issues/2161 + // This should produce a warning: https://github.com/dotnet/linker/issues/2161 [RequiresUnreferencedCode ("--RUC on AnnotatedInterfaces.UnusedMethod--")] public void RUCMethod () { } } diff --git a/test/Mono.Linker.Tests.Cases/RequiresCapability/RequiresUnreferencedCodeCapability.cs b/test/Mono.Linker.Tests.Cases/RequiresCapability/RequiresUnreferencedCodeCapability.cs index d0fdf744f..5d137cbfc 100644 --- a/test/Mono.Linker.Tests.Cases/RequiresCapability/RequiresUnreferencedCodeCapability.cs +++ b/test/Mono.Linker.Tests.Cases/RequiresCapability/RequiresUnreferencedCodeCapability.cs @@ -33,8 +33,8 @@ namespace Mono.Linker.Tests.Cases.RequiresCapability [LogDoesNotContain ("--UnusedVirtualMethod2--")] [LogDoesNotContain ("--IUnusedInterface.UnusedMethod--")] [LogDoesNotContain ("--UnusedImplementationClass.UnusedMethod--")] - // [LogDoesNotContain ("UnusedVirtualMethod2")] // https://github.com/mono/linker/issues/2106 - // [LogContains ("--RequiresUnreferencedCodeOnlyViaDescriptor--")] // https://github.com/mono/linker/issues/2103 + // [LogDoesNotContain ("UnusedVirtualMethod2")] // https://github.com/dotnet/linker/issues/2106 + // [LogContains ("--RequiresUnreferencedCodeOnlyViaDescriptor--")] // https://github.com/dotnet/linker/issues/2103 [ExpectedNoWarnings] public class RequiresUnreferencedCodeCapability { @@ -493,7 +493,7 @@ namespace Mono.Linker.Tests.Cases.RequiresCapability tmp.GetRequiresUnreferencedCode (); } - // https://github.com/mono/linker/issues/2107 + // https://github.com/dotnet/linker/issues/2107 // Doesn't work in the analyzer because the test infra for analyzer will not build the second assembly // and provide it as a ref assembly to the compilation - so the analyzer actually sees the below // as errors (missing assembly). @@ -597,7 +597,7 @@ namespace Mono.Linker.Tests.Cases.RequiresCapability public static void TestMethod () { } } - // https://github.com/mono/linker/issues/2094 - should be supported by the analyzer + // https://github.com/dotnet/linker/issues/2094 - should be supported by the analyzer [ExpectedWarning ("IL2026", "--AttributeWhichRequiresUnreferencedCodeAttribute.ctor--", GlobalAnalysisOnly = true)] static void GenericMethodWithAttributedParameter<[AttributeWhichRequiresUnreferencedCode] T> () { } @@ -607,7 +607,7 @@ namespace Mono.Linker.Tests.Cases.RequiresCapability GenericMethodWithAttributedParameter (); } - // https://github.com/mono/linker/issues/2094 - should be supported by the analyzer + // https://github.com/dotnet/linker/issues/2094 - should be supported by the analyzer [ExpectedWarning ("IL2026", "--AttributeWhichRequiresUnreferencedCodeAttribute.ctor--", GlobalAnalysisOnly = true)] [ExpectedWarning ("IL2026", "--AttributeWhichRequiresUnreferencedCodeOnPropertyAttribute.PropertyWhichRequires--")] [AttributeWhichRequiresUnreferencedCode] @@ -616,7 +616,7 @@ namespace Mono.Linker.Tests.Cases.RequiresCapability { } - // https://github.com/mono/linker/issues/2094 - should be supported by the analyzer + // https://github.com/dotnet/linker/issues/2094 - should be supported by the analyzer [ExpectedWarning ("IL2026", "--AttributeWhichRequiresUnreferencedCodeAttribute.ctor--", GlobalAnalysisOnly = true)] [ExpectedWarning ("IL2026", "--AttributeWhichRequiresUnreferencedCodeOnPropertyAttribute.PropertyWhichRequires--")] [AttributeWhichRequiresUnreferencedCode] @@ -709,7 +709,7 @@ namespace Mono.Linker.Tests.Cases.RequiresCapability class AccessThroughSpecialAttribute { - // https://github.com/mono/linker/issues/1873 + // https://github.com/dotnet/linker/issues/1873 // [ExpectedWarning ("IL2026", "--DebuggerProxyType.Method--")] [DebuggerDisplay ("Some{*}value")] class TypeWithDebuggerDisplay @@ -734,7 +734,7 @@ namespace Mono.Linker.Tests.Cases.RequiresCapability public PInvokeReturnType () { } } - // https://github.com/mono/linker/issues/2116 + // https://github.com/dotnet/linker/issues/2116 [ExpectedWarning ("IL2026", "--PInvokeReturnType.ctor--", GlobalAnalysisOnly = true)] [DllImport ("nonexistent")] static extern PInvokeReturnType PInvokeReturnsType (); @@ -1196,7 +1196,7 @@ namespace Mono.Linker.Tests.Cases.RequiresCapability public static int field; public static int Property { get; set; } - // These should not be reported https://github.com/mono/linker/issues/2218 + // These should not be reported https://github.com/dotnet/linker/issues/2218 [ExpectedWarning ("IL2026", "add_Event", GlobalAnalysisOnly = true)] [ExpectedWarning ("IL2026", "remove_Event", GlobalAnalysisOnly = true)] public static event EventHandler Event; @@ -1429,14 +1429,14 @@ namespace Mono.Linker.Tests.Cases.RequiresCapability class ReflectionAccessOnEvents { - // Most of the tests in this run into https://github.com/mono/linker/issues/2218 + // Most of the tests in this run into https://github.com/dotnet/linker/issues/2218 // So for now keeping just a very simple test [RequiresUnreferencedCode ("--WithRUC--")] class WithRUC { // These should be reported only in TestDirectReflectionAccess - // https://github.com/mono/linker/issues/2218 + // https://github.com/dotnet/linker/issues/2218 [ExpectedWarning ("IL2026", "add_StaticEvent", GlobalAnalysisOnly = true)] [ExpectedWarning ("IL2026", "remove_StaticEvent", GlobalAnalysisOnly = true)] public static event EventHandler StaticEvent; diff --git a/test/Mono.Linker.Tests.Cases/TypeForwarding/SecurityAttributeScope.cs b/test/Mono.Linker.Tests.Cases/TypeForwarding/SecurityAttributeScope.cs index 47bc346a2..7aba7c443 100644 --- a/test/Mono.Linker.Tests.Cases/TypeForwarding/SecurityAttributeScope.cs +++ b/test/Mono.Linker.Tests.Cases/TypeForwarding/SecurityAttributeScope.cs @@ -10,7 +10,7 @@ namespace Mono.Linker.Tests.Cases.TypeForwarding /// This test depends on a functioning peverify / il verify in order to fail if the scope of type references on security attributes /// were not correctly updated. /// - /// In order words, until https://github.com/mono/linker/issues/1703 is addressed this test will pass with or without the fix to update the scope on security attributes + /// In order words, until https://github.com/dotnet/linker/issues/1703 is addressed this test will pass with or without the fix to update the scope on security attributes /// [SetupLinkerArgument ("--skip-unresolved", "true")] [SetupLinkerArgument ("--strip-security", "false")] diff --git a/test/Mono.Linker.Tests.Cases/TypeForwarding/UsedForwarderInGenericIsDynamicallyAccessedWithAssemblyCopyUsed.cs b/test/Mono.Linker.Tests.Cases/TypeForwarding/UsedForwarderInGenericIsDynamicallyAccessedWithAssemblyCopyUsed.cs index 9f167aef2..1bce342ca 100644 --- a/test/Mono.Linker.Tests.Cases/TypeForwarding/UsedForwarderInGenericIsDynamicallyAccessedWithAssemblyCopyUsed.cs +++ b/test/Mono.Linker.Tests.Cases/TypeForwarding/UsedForwarderInGenericIsDynamicallyAccessedWithAssemblyCopyUsed.cs @@ -19,7 +19,7 @@ namespace Mono.Linker.Tests.Cases.TypeForwarding [SetupCompileAfter ("Implementation.dll", new[] { "Dependencies/ImplementationLibrary.cs" })] [SetupCompileAfter ("Forwarder.dll", new[] { "Dependencies/ForwarderLibrary.cs" }, references: new[] { "Implementation.dll" })] - // https://github.com/mono/linker/issues/1536 + // https://github.com/dotnet/linker/issues/1536 //[KeptMemberInAssembly ("Forwarder.dll", typeof (ImplementationLibrary))] [KeptTypeInAssembly ("Implementation.dll", typeof (ImplementationLibrary))] class UsedForwarderInGenericIsDynamicallyAccessedWithAssemblyCopyUsed -- cgit v1.2.3