@@ -2203,11 +2203,7 @@ public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollect
22032203 return try _representation. withUnsafeBytes ( body)
22042204 }
22052205
2206- #if compiler(>=6.2) && $LifetimeDependence
22072206 @available ( FoundationSpan 6 . 2 , * )
2208- #if FOUNDATION_FRAMEWORK
2209- @_disfavoredOverload
2210- #endif // FOUNDATION_FRAMEWORK
22112207 public var bytes : RawSpan {
22122208 @lifetime ( borrow self)
22132209 borrowing get {
@@ -2242,9 +2238,7 @@ public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollect
22422238 return _overrideLifetime ( span, borrowing: self )
22432239 }
22442240 }
2245- #endif
22462241
2247- #if compiler(>=5.9) && $InoutLifetimeDependence && $LifetimeDependenceMutableAccessors
22482242 @available ( FoundationSpan 6 . 2 , * )
22492243 public var mutableBytes : MutableRawSpan {
22502244 @lifetime ( & self )
@@ -2304,7 +2298,6 @@ public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollect
23042298#endif
23052299 }
23062300 }
2307- #endif // $InoutLifetimeDependence && $LifetimeDependenceMutableAccessors
23082301
23092302 @_alwaysEmitIntoClient
23102303 public func withContiguousStorageIfAvailable< ResultType> ( _ body: ( _ buffer: UnsafeBufferPointer < UInt8 > ) throws -> ResultType ) rethrows -> ResultType ? {
@@ -2979,7 +2972,6 @@ extension Data : Codable {
29792972}
29802973
29812974// TODO: remove once _overrideLifetime is public in the standard library
2982- #if compiler(>=6.2) && $LifetimeDependence
29832975/// Unsafely discard any lifetime dependency on the `dependent` argument. Return
29842976/// a value identical to `dependent` with a lifetime dependency on the caller's
29852977/// borrow scope of the `source` argument.
@@ -3011,9 +3003,7 @@ internal func _overrideLifetime<
30113003) -> T {
30123004 dependent
30133005}
3014- #endif
30153006
3016- #if compiler(>=5.9) && $InoutLifetimeDependence && $LifetimeDependenceMutableAccessors
30173007/// Unsafely discard any lifetime dependency on the `dependent` argument.
30183008/// Return a value identical to `dependent` with a lifetime dependency
30193009/// on the caller's exclusive borrow scope of the `source` argument.
@@ -3030,4 +3020,3 @@ internal func _overrideLifetime<
30303020) -> T {
30313021 dependent
30323022}
3033- #endif // $InoutLifetimeDependence && $LifetimeDependenceMutableAccessors
0 commit comments