Skip to content

Commit 22cb4df

Browse files
authored
Temporarily make Data.bytes a disfavored overload (#1331)
1 parent 7978bfe commit 22cb4df

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Sources/FoundationEssentials/Data/Data.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2205,6 +2205,9 @@ public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollect
22052205

22062206
#if compiler(>=6.2) && $LifetimeDependence
22072207
@available(FoundationSpan 6.2, *)
2208+
#if FOUNDATION_FRAMEWORK
2209+
@_disfavoredOverload
2210+
#endif // FOUNDATION_FRAMEWORK
22082211
public var bytes: RawSpan {
22092212
@lifetime(borrow self)
22102213
borrowing get {

0 commit comments

Comments
 (0)