[gardening] labels for conditional compilation markers

This commit is contained in:
Guillaume Lessard
2025-06-24 17:10:37 -07:00
parent 3d27453b23
commit 2eb8d2bdcb
3 changed files with 12 additions and 12 deletions

View File

@@ -330,7 +330,7 @@ extension String.UTF8View {
let span = unsafe Span(_unsafeStart: start, count: count)
return unsafe _overrideLifetime(span, borrowing: self)
}
#endif
#endif // _runtime(_ObjC)
let count = _guts.count
if _guts.isSmall {
let a = Builtin.addressOfBorrow(self)
@@ -384,7 +384,7 @@ extension String.UTF8View {
span
}
}
#else
#else // !(os(watchOS) && _pointerBitWidth(_32))
@available(watchOS, unavailable)
public var span: Span<UTF8.CodeUnit> {
@lifetime(borrow self)
@@ -415,7 +415,7 @@ extension String.UTF8View {
return _underlyingSpan()
}
}
#endif
#endif // !(os(watchOS) && _pointerBitWidth(_32))
}
// Index conversions