From 1a9dc9721b1727f0191eaee0e10dbb383c0bf8ba Mon Sep 17 00:00:00 2001 From: Brandon Williams <135203+mbrandonw@users.noreply.github.com> Date: Thu, 12 Sep 2024 11:55:04 -0400 Subject: [PATCH] Remove @_implementationOnly imports. (#33) --- Sources/MacroTesting/AssertMacro.swift | 4 +--- Sources/MacroTesting/Internal/RecordIssue.swift | 4 +--- Sources/MacroTesting/MacrosTestTrait.swift | 4 +--- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/Sources/MacroTesting/AssertMacro.swift b/Sources/MacroTesting/AssertMacro.swift index f277dbe..604ba6c 100644 --- a/Sources/MacroTesting/AssertMacro.swift +++ b/Sources/MacroTesting/AssertMacro.swift @@ -10,9 +10,7 @@ import SwiftSyntaxMacros import XCTest #if canImport(Testing) - // NB: We are importing only the implementation of Testing because that framework is not available - // in Xcode UI test targets. - @_implementationOnly import Testing + import Testing #endif /// Asserts that a given Swift source string matches an expected string with all macros expanded. diff --git a/Sources/MacroTesting/Internal/RecordIssue.swift b/Sources/MacroTesting/Internal/RecordIssue.swift index 13d087c..01c700d 100644 --- a/Sources/MacroTesting/Internal/RecordIssue.swift +++ b/Sources/MacroTesting/Internal/RecordIssue.swift @@ -1,9 +1,7 @@ import XCTest #if canImport(Testing) - // NB: We are importing only the implementation of Testing because that framework is not available - // in Xcode UI test targets. - @_implementationOnly import Testing + import Testing #endif @_spi(Internals) diff --git a/Sources/MacroTesting/MacrosTestTrait.swift b/Sources/MacroTesting/MacrosTestTrait.swift index e833801..fad9e28 100644 --- a/Sources/MacroTesting/MacrosTestTrait.swift +++ b/Sources/MacroTesting/MacrosTestTrait.swift @@ -2,9 +2,7 @@ import SnapshotTesting import SwiftSyntax import SwiftSyntaxMacros - // NB: We are importing only the implementation of Testing because that framework is not available - // in Xcode UI test targets. - @_implementationOnly import Testing + import Testing @_spi(Experimental) extension Trait where Self == _MacrosTestTrait {