From 3bbd14b76cca6e3546529723353ee7b7f9af2dba Mon Sep 17 00:00:00 2001 From: Allan Shortlidge Date: Tue, 11 Aug 2026 15:08:55 -0700 Subject: [PATCH] Update the compiler diagnostic in PullDiagnosticsTests.testNoteInSecondaryFile(). The location and highlights for Swift compiler diagnostics about unavailable declarations are changing in https://github.com/swiftlang/swift/pull/91369. The PullDiagnosticsTests.testNoteInSecondaryFile() test would start failing as a result, so update the test to verify the same fundamental behavior as it did before but using a different compiler diagnostic that isn't changing. --- Tests/SourceKitLSPTests/PullDiagnosticsTests.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Tests/SourceKitLSPTests/PullDiagnosticsTests.swift b/Tests/SourceKitLSPTests/PullDiagnosticsTests.swift index 6323bfaa3..751235115 100644 --- a/Tests/SourceKitLSPTests/PullDiagnosticsTests.swift +++ b/Tests/SourceKitLSPTests/PullDiagnosticsTests.swift @@ -374,12 +374,11 @@ final class PullDiagnosticsTests: SourceKitLSPTestCase { func testNoteInSecondaryFile() async throws { let project = try await SwiftPMTestProject(files: [ "FileA.swift": """ - @available(*, unavailable) - struct 1️⃣Test {} + func 1️⃣foo(bar: Int) {} """, "FileB.swift": """ func test() { - _ = Test() + foo() } """, ])