From 3d9fcd5f71bb8304c1437d7fff92e0fff6c6583b Mon Sep 17 00:00:00 2001 From: Jonathan Grynspan Date: Mon, 10 Nov 2025 13:53:27 -0500 Subject: [PATCH] Mark `Issue.Severity` cases with availability. It is necessary to explicitly mark the cases of this enum with their Swift 6.3 availability as it is not inherited when rendered in DocC. --- Sources/Testing/Issues/Issue.swift | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Sources/Testing/Issues/Issue.swift b/Sources/Testing/Issues/Issue.swift index beeca101e..70e4a01a9 100644 --- a/Sources/Testing/Issues/Issue.swift +++ b/Sources/Testing/Issues/Issue.swift @@ -94,12 +94,20 @@ public struct Issue: Sendable { /// /// An issue with warning severity does not cause the test it's associated /// with to be marked as a failure, but is noted in the results. + /// + /// @Metadata { + /// @Available(Swift, introduced: 6.3) + /// } case warning /// The severity level for an issue which represents an error in a test. /// /// An issue with error severity causes the test it's associated with to be /// marked as a failure. + /// + /// @Metadata { + /// @Available(Swift, introduced: 6.3) + /// } case error }