From 4bb3cf14964760919824663fb29309ca3ae1d49e Mon Sep 17 00:00:00 2001 From: Ben Rimmington Date: Tue, 25 Feb 2025 18:17:05 +0000 Subject: [PATCH] [stdlib] Update `WordPair: Comparable` conformance (#79606) --- stdlib/public/Synchronization/Atomics/WordPair.swift | 8 ++++---- test/stdlib/Synchronization/Atomics/WordPair.swift | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/stdlib/public/Synchronization/Atomics/WordPair.swift b/stdlib/public/Synchronization/Atomics/WordPair.swift index 1f740115342..8909d118737 100644 --- a/stdlib/public/Synchronization/Atomics/WordPair.swift +++ b/stdlib/public/Synchronization/Atomics/WordPair.swift @@ -1,8 +1,8 @@ //===----------------------------------------------------------------------===// // -// This source file is part of the Swift Atomics open source project +// This source file is part of the Swift.org open source project // -// Copyright (c) 2023 Apple Inc. and the Swift project authors +// Copyright (c) 2023-2025 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/LICENSE.txt for license information @@ -183,9 +183,9 @@ extension WordPair: Hashable { } } -@available(SwiftStdlib 6.2, *) +@available(SwiftStdlib 6.1, *) extension WordPair: Comparable { - @available(SwiftStdlib 6.2, *) + @available(SwiftStdlib 6.1, *) @_alwaysEmitIntoClient @_transparent public static func <(lhs: WordPair, rhs: WordPair) -> Bool { diff --git a/test/stdlib/Synchronization/Atomics/WordPair.swift b/test/stdlib/Synchronization/Atomics/WordPair.swift index 6f1319f8b58..80bdd22072e 100644 --- a/test/stdlib/Synchronization/Atomics/WordPair.swift +++ b/test/stdlib/Synchronization/Atomics/WordPair.swift @@ -49,7 +49,7 @@ suite.test("basics") { } // if #available(SwiftStdlib 6.0, *) -if #available(SwiftStdlib 6.2, *) { +if #available(SwiftStdlib 6.1, *) { suite.test("comparable") { let c0 = WordPair(first: 0, second: 0) let c1 = WordPair(first: 1, second: 0) @@ -65,6 +65,6 @@ suite.test("comparable") { expectTrue(c4 < c5) expectFalse(c5 < c4) } -} // if #available(SwiftStdlib 6.2, *) +} // if #available(SwiftStdlib 6.1, *) runAllTests()