@@ -2203,11 +2203,7 @@ public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollect
2203
2203
return try _representation. withUnsafeBytes ( body)
2204
2204
}
2205
2205
2206
- #if compiler(>=6.2) && $LifetimeDependence
2207
2206
@available ( FoundationSpan 6 . 2 , * )
2208
- #if FOUNDATION_FRAMEWORK
2209
- @_disfavoredOverload
2210
- #endif // FOUNDATION_FRAMEWORK
2211
2207
public var bytes : RawSpan {
2212
2208
@lifetime ( borrow self)
2213
2209
borrowing get {
@@ -2242,9 +2238,7 @@ public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollect
2242
2238
return _overrideLifetime ( span, borrowing: self )
2243
2239
}
2244
2240
}
2245
- #endif
2246
2241
2247
- #if compiler(>=5.9) && $InoutLifetimeDependence && $LifetimeDependenceMutableAccessors
2248
2242
@available ( FoundationSpan 6 . 2 , * )
2249
2243
public var mutableBytes : MutableRawSpan {
2250
2244
@lifetime ( & self )
@@ -2304,7 +2298,6 @@ public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollect
2304
2298
#endif
2305
2299
}
2306
2300
}
2307
- #endif // $InoutLifetimeDependence && $LifetimeDependenceMutableAccessors
2308
2301
2309
2302
@_alwaysEmitIntoClient
2310
2303
public func withContiguousStorageIfAvailable< ResultType> ( _ body: ( _ buffer: UnsafeBufferPointer < UInt8 > ) throws -> ResultType ) rethrows -> ResultType ? {
@@ -2979,7 +2972,6 @@ extension Data : Codable {
2979
2972
}
2980
2973
2981
2974
// TODO: remove once _overrideLifetime is public in the standard library
2982
- #if compiler(>=6.2) && $LifetimeDependence
2983
2975
/// Unsafely discard any lifetime dependency on the `dependent` argument. Return
2984
2976
/// a value identical to `dependent` with a lifetime dependency on the caller's
2985
2977
/// borrow scope of the `source` argument.
@@ -3011,9 +3003,7 @@ internal func _overrideLifetime<
3011
3003
) -> T {
3012
3004
dependent
3013
3005
}
3014
- #endif
3015
3006
3016
- #if compiler(>=5.9) && $InoutLifetimeDependence && $LifetimeDependenceMutableAccessors
3017
3007
/// Unsafely discard any lifetime dependency on the `dependent` argument.
3018
3008
/// Return a value identical to `dependent` with a lifetime dependency
3019
3009
/// on the caller's exclusive borrow scope of the `source` argument.
@@ -3030,4 +3020,3 @@ internal func _overrideLifetime<
3030
3020
) -> T {
3031
3021
dependent
3032
3022
}
3033
- #endif // $InoutLifetimeDependence && $LifetimeDependenceMutableAccessors
0 commit comments