From 2778f39d5657374be249745c1433ccc0e5c65ca3 Mon Sep 17 00:00:00 2001 From: Andrew Trick Date: Tue, 19 Aug 2025 17:07:15 -0700 Subject: [PATCH] Mark a UTF8Span test unavailable on watchOS. Fixes rdar://158517336 - Swift CI: oss-swift_tools-RA_stdlib-DA_test-device-non_executable (cherry picked from commit 14e44a569ca032008e5630e70c5bd7033be56c85) --- .../lifetime_dependence/lifetime_dependence_scope_fixup.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/SILOptimizer/lifetime_dependence/lifetime_dependence_scope_fixup.swift b/test/SILOptimizer/lifetime_dependence/lifetime_dependence_scope_fixup.swift index eedf97d1418c0..81f51c292e3a3 100644 --- a/test/SILOptimizer/lifetime_dependence/lifetime_dependence_scope_fixup.swift +++ b/test/SILOptimizer/lifetime_dependence/lifetime_dependence_scope_fixup.swift @@ -329,6 +329,9 @@ func testWrite(_ w: inout ArrayWrapper) { } // Test store_borrow extension which is required when the addressable UTF8View is extended over the Span's uses. +// +// UTF8Span is unavailable on watchOS as of the introduction of this test. +@available(watchOS, unavailable) @available(SwiftStdlib 6.2, *) func testSpanOfBorrowByAddress(_ i: Int) -> Int { let span = String(i).utf8.span