From 9015405745aa106179e5f8472691ae0e3b71b206 Mon Sep 17 00:00:00 2001 From: Jonathan Grynspan Date: Mon, 16 Jun 2025 15:35:05 -0400 Subject: [PATCH 1/2] Revert "Update outdated Suite macro documentation (#1142)" This reverts commit 25b61ef4667a6d1dda30cb3420336621886529c4. --- Sources/Testing/Test+Macro.swift | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Sources/Testing/Test+Macro.swift b/Sources/Testing/Test+Macro.swift index f2fc415d6..44e9d3d72 100644 --- a/Sources/Testing/Test+Macro.swift +++ b/Sources/Testing/Test+Macro.swift @@ -53,8 +53,9 @@ public typealias __XCTestCompatibleSelector = Never /// - Parameters: /// - traits: Zero or more traits to apply to this test suite. /// -/// A test suite is a type that contains one or more test functions. -/// Any type may be a test suite. +/// A test suite is a type that contains one or more test functions. Any +/// copyable type (that is, any type that is not marked `~Copyable`) may be a +/// test suite. /// /// The use of the `@Suite` attribute is optional; types are recognized as test /// suites even if they do not have the `@Suite` attribute applied to them. @@ -80,8 +81,9 @@ public macro Suite( /// from the associated type's name. /// - traits: Zero or more traits to apply to this test suite. /// -/// A test suite is a type that contains one or more test functions. -/// Any type may be a test suite. +/// A test suite is a type that contains one or more test functions. Any +/// copyable type (that is, any type that is not marked `~Copyable`) may be a +/// test suite. /// /// The use of the `@Suite` attribute is optional; types are recognized as test /// suites even if they do not have the `@Suite` attribute applied to them. From 7c672abd0580d4fa4cb9a90acf5a95e10a703bb8 Mon Sep 17 00:00:00 2001 From: Jonathan Grynspan Date: Mon, 16 Jun 2025 15:37:26 -0400 Subject: [PATCH 2/2] Replace ~Copyable with ~Escapable in the relevant documentation about Suite types. --- Sources/Testing/Test+Macro.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Testing/Test+Macro.swift b/Sources/Testing/Test+Macro.swift index 44e9d3d72..a8d9eaf51 100644 --- a/Sources/Testing/Test+Macro.swift +++ b/Sources/Testing/Test+Macro.swift @@ -54,7 +54,7 @@ public typealias __XCTestCompatibleSelector = Never /// - traits: Zero or more traits to apply to this test suite. /// /// A test suite is a type that contains one or more test functions. Any -/// copyable type (that is, any type that is not marked `~Copyable`) may be a +/// escapable type (that is, any type that is not marked `~Escapable`) may be a /// test suite. /// /// The use of the `@Suite` attribute is optional; types are recognized as test @@ -82,7 +82,7 @@ public macro Suite( /// - traits: Zero or more traits to apply to this test suite. /// /// A test suite is a type that contains one or more test functions. Any -/// copyable type (that is, any type that is not marked `~Copyable`) may be a +/// escapable type (that is, any type that is not marked `~Escapable`) may be a /// test suite. /// /// The use of the `@Suite` attribute is optional; types are recognized as test