Skip to content

Commit 472050d

Browse files
authored
Remove extraneous diagnostic (#69830)
1 parent 1e4f93b commit 472050d

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/libraries/System.Runtime.InteropServices/gen/LibraryImportGenerator/LibraryImportGenerator.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,6 @@ private static IncrementalStubGenerationContext CalculateStubInformation(
274274

275275
if (libraryImportData is null)
276276
{
277-
generatorDiagnostics.ReportConfigurationNotSupported(generatedDllImportAttr!, "Invalid syntax");
278277
libraryImportData = new LibraryImportData("INVALID_CSHARP_SYNTAX");
279278
}
280279

src/libraries/System.Runtime.InteropServices/tests/LibraryImportGenerator.UnitTests/CompileFails.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ public static IEnumerable<object[]> CodeSnippetsToCompile_InvalidCode()
149149
{
150150
yield return new object[] { CodeSnippets.RecursiveImplicitlyBlittableStruct, 0, 1 };
151151
yield return new object[] { CodeSnippets.MutuallyRecursiveImplicitlyBlittableStruct, 0, 2 };
152-
yield return new object[] { CodeSnippets.PartialPropertyName, 1, 2 };
153-
yield return new object[] { CodeSnippets.InvalidConstantForModuleName, 1, 1 };
154-
yield return new object[] { CodeSnippets.IncorrectAttributeFieldType, 1, 1 };
152+
yield return new object[] { CodeSnippets.PartialPropertyName, 0, 2 };
153+
yield return new object[] { CodeSnippets.InvalidConstantForModuleName, 0, 1 };
154+
yield return new object[] { CodeSnippets.IncorrectAttributeFieldType, 0, 1 };
155155
}
156156

157157
[Theory]

0 commit comments

Comments
 (0)