Skip to content

Commit 73ffc13

Browse files
committed
[stdlib] Update Swift version numbers
1 parent c2d69a6 commit 73ffc13

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

stdlib/public/core/MemoryLayout.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,21 +83,21 @@ extension MemoryLayout where T: ~Copyable {
8383

8484
extension MemoryLayout {
8585
// TODO: Merge this back into the noncopyable variant once we have @_preInverseGenerics
86-
@available(swift, obsoleted: 5.11) // Legacy ABI compatibility
86+
@available(swift, obsoleted: 6.0) // Legacy ABI compatibility
8787
@usableFromInline
8888
internal static var size: Int {
8989
return Int(Builtin.sizeof(T.self))
9090
}
9191

9292
// TODO: Merge this back into the noncopyable variant once we have @_preInverseGenerics
93-
@available(swift, obsoleted: 5.11) // Legacy ABI compatibility
93+
@available(swift, obsoleted: 6.0) // Legacy ABI compatibility
9494
@usableFromInline
9595
internal static var stride: Int {
9696
return Int(Builtin.strideof(T.self))
9797
}
9898

9999
// TODO: Merge this back into the noncopyable variant once we have @_preInverseGenerics
100-
@available(swift, obsoleted: 5.11) // Legacy ABI compatibility
100+
@available(swift, obsoleted: 6.0) // Legacy ABI compatibility
101101
@usableFromInline
102102
internal static var alignment: Int {
103103
return Int(Builtin.alignof(T.self))
@@ -191,21 +191,21 @@ extension MemoryLayout where T: ~Copyable {
191191

192192
extension MemoryLayout {
193193
// TODO: Merge this back into the noncopyable variant once we have @_preInverseGenerics
194-
@available(swift, obsoleted: 5.11) // Legacy ABI compatibility
194+
@available(swift, obsoleted: 6.0) // Legacy ABI compatibility
195195
@usableFromInline
196196
internal static func size(ofValue value: borrowing T) -> Int {
197197
return MemoryLayout.size
198198
}
199199

200200
// TODO: Merge this back into the noncopyable variant once we have @_preInverseGenerics
201-
@available(swift, obsoleted: 5.11) // Legacy ABI compatibility
201+
@available(swift, obsoleted: 6.0) // Legacy ABI compatibility
202202
@usableFromInline
203203
internal static func stride(ofValue value: borrowing T) -> Int {
204204
return MemoryLayout.stride
205205
}
206206

207207
// TODO: Merge this back into the noncopyable variant once we have @_preInverseGenerics
208-
@available(swift, obsoleted: 5.11) // Legacy ABI compatibility
208+
@available(swift, obsoleted: 6.0) // Legacy ABI compatibility
209209
@usableFromInline
210210
internal static func alignment(ofValue value: borrowing T) -> Int {
211211
return MemoryLayout.alignment

stdlib/public/core/UnsafePointer.swift

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ public struct UnsafePointer<Pointee: ~Copyable>: _Pointer, Copyable {
222222

223223
extension UnsafePointer {
224224
// TODO: Merge this back into the noncopyable variant once we have @_preInverseGenerics
225-
@available(swift, obsoleted: 5.11) // Legacy ABI compatibility
225+
@available(swift, obsoleted: 6.0) // Legacy ABI compatibility
226226
@usableFromInline
227227
internal init(_ _rawValue: Builtin.RawPointer) {
228228
self._rawValue = _rawValue
@@ -247,7 +247,7 @@ extension UnsafePointer where Pointee: ~Copyable {
247247

248248
extension UnsafePointer {
249249
// TODO: Merge this back into the noncopyable variant once we have @_preInverseGenerics
250-
@available(swift, obsoleted: 5.11) // Legacy ABI compatibility
250+
@available(swift, obsoleted: 6.0) // Legacy ABI compatibility
251251
@usableFromInline
252252
internal func deallocate() {
253253
// Passing zero alignment to the runtime forces "aligned
@@ -273,7 +273,7 @@ extension UnsafePointer where Pointee: ~Copyable {
273273

274274
extension UnsafePointer {
275275
// TODO: Merge this back into the noncopyable variant once we have @_preInverseGenerics
276-
@available(swift, obsoleted: 5.11) // Legacy ABI compatibility
276+
@available(swift, obsoleted: 6.0) // Legacy ABI compatibility
277277
@usableFromInline
278278
internal var pointee: Pointee {
279279
unsafeAddress {
@@ -301,7 +301,7 @@ extension UnsafePointer where Pointee: ~Copyable {
301301

302302
extension UnsafePointer {
303303
// TODO: Merge this back into the noncopyable variant once we have @_preInverseGenerics
304-
@available(swift, obsoleted: 5.11) // Legacy ABI compatibility
304+
@available(swift, obsoleted: 6.0) // Legacy ABI compatibility
305305
@usableFromInline
306306
internal subscript(i: Int) -> Pointee {
307307
@_transparent
@@ -405,7 +405,7 @@ extension UnsafePointer {
405405
// of `withMemoryRebound<T, Result>(to:capacity:_:)`, and provides
406406
// an entry point for any binary linked against the stdlib binary
407407
// for Swift 5.6 and older.
408-
@available(swift, obsoleted: 5.11)
408+
@available(swift, obsoleted: 6.0)
409409
@_silgen_name("$sSP17withMemoryRebound2to8capacity_qd_0_qd__m_Siqd_0_SPyqd__GKXEtKr0_lF")
410410
@usableFromInline
411411
internal func _legacy_se0333_withMemoryRebound<T, Result>(
@@ -701,36 +701,36 @@ public struct UnsafeMutablePointer<Pointee: ~Copyable>: _Pointer, Copyable {
701701

702702
extension UnsafeMutablePointer {
703703
// TODO: Merge this back into the noncopyable variant once we have @_preInverseGenerics
704-
@available(swift, obsoleted: 5.11) // Legacy ABI compatibility
704+
@available(swift, obsoleted: 6.0) // Legacy ABI compatibility
705705
@usableFromInline
706706
internal init(_ _rawValue: Builtin.RawPointer) {
707707
self._rawValue = _rawValue
708708
}
709709

710710
// TODO: Merge this back into the noncopyable variant once we have @_preInverseGenerics
711-
@available(swift, obsoleted: 5.11) // Legacy ABI compatibility
711+
@available(swift, obsoleted: 6.0) // Legacy ABI compatibility
712712
@usableFromInline
713713
internal init(@_nonEphemeral mutating other: UnsafePointer<Pointee>) {
714714
self._rawValue = other._rawValue
715715
}
716716

717717
// TODO: Merge this back into the noncopyable variant once we have @_preInverseGenerics
718-
@available(swift, obsoleted: 5.11) // Legacy ABI compatibility
718+
@available(swift, obsoleted: 6.0) // Legacy ABI compatibility
719719
@usableFromInline
720720
internal init?(@_nonEphemeral mutating other: UnsafePointer<Pointee>?) {
721721
guard let unwrapped = other else { return nil }
722722
self.init(mutating: unwrapped)
723723
}
724724

725725
// TODO: Merge this back into the noncopyable variant once we have @_preInverseGenerics
726-
@available(swift, obsoleted: 5.11) // Legacy ABI compatibility
726+
@available(swift, obsoleted: 6.0) // Legacy ABI compatibility
727727
@usableFromInline
728728
internal init(@_nonEphemeral _ other: UnsafeMutablePointer<Pointee>) {
729729
self._rawValue = other._rawValue
730730
}
731731

732732
// TODO: Merge this back into the noncopyable variant once we have @_preInverseGenerics
733-
@available(swift, obsoleted: 5.11) // Legacy ABI compatibility
733+
@available(swift, obsoleted: 6.0) // Legacy ABI compatibility
734734
@usableFromInline
735735
internal init?(@_nonEphemeral _ other: UnsafeMutablePointer<Pointee>?) {
736736
guard let unwrapped = other else { return nil }
@@ -789,7 +789,7 @@ extension UnsafeMutablePointer where Pointee: ~Copyable {
789789

790790
extension UnsafeMutablePointer {
791791
// TODO: Merge this back into the noncopyable variant once we have @_preInverseGenerics
792-
@available(swift, obsoleted: 5.11) // Legacy ABI compatibility
792+
@available(swift, obsoleted: 6.0) // Legacy ABI compatibility
793793
@usableFromInline
794794
internal static func allocate(
795795
capacity count: Int
@@ -833,7 +833,7 @@ extension UnsafeMutablePointer where Pointee: ~Copyable {
833833

834834
extension UnsafeMutablePointer {
835835
// TODO: Merge this back into the noncopyable variant once we have @_preInverseGenerics
836-
@available(swift, obsoleted: 5.11) // Legacy ABI compatibility
836+
@available(swift, obsoleted: 6.0) // Legacy ABI compatibility
837837
@usableFromInline
838838
internal func deallocate() {
839839
// Passing zero alignment to the runtime forces "aligned
@@ -868,7 +868,7 @@ extension UnsafeMutablePointer where Pointee: ~Copyable {
868868
}
869869

870870
extension UnsafeMutablePointer {
871-
@available(swift, obsoleted: 5.11) // Legacy ABI compatibility
871+
@available(swift, obsoleted: 6.0) // Legacy ABI compatibility
872872
@usableFromInline
873873
internal var pointee: Pointee {
874874
@_transparent unsafeAddress {
@@ -923,7 +923,7 @@ extension UnsafeMutablePointer where Pointee: ~Copyable {
923923
}
924924

925925
extension UnsafeMutablePointer {
926-
@available(swift, obsoleted: 5.11) // Legacy ABI compatibility
926+
@available(swift, obsoleted: 6.0) // Legacy ABI compatibility
927927
@usableFromInline
928928
internal func initialize(to value: Pointee) { // Note: `value` was __shared!
929929
Builtin.initialize(value, self._rawValue)
@@ -955,7 +955,7 @@ extension UnsafeMutablePointer where Pointee: ~Copyable {
955955

956956
extension UnsafeMutablePointer {
957957
// TODO: Merge this back into the noncopyable variant once we have @_preInverseGenerics
958-
@available(swift, obsoleted: 5.11) // Legacy ABI compatibility
958+
@available(swift, obsoleted: 6.0) // Legacy ABI compatibility
959959
@usableFromInline
960960
internal func move() -> Pointee {
961961
return Builtin.take(_rawValue)
@@ -1096,7 +1096,7 @@ extension UnsafeMutablePointer where Pointee: ~Copyable {
10961096

10971097
extension UnsafeMutablePointer {
10981098
// TODO: Merge this back into the noncopyable variant once we have @_preInverseGenerics
1099-
@available(swift, obsoleted: 5.11) // Legacy ABI compatibility
1099+
@available(swift, obsoleted: 6.0) // Legacy ABI compatibility
11001100
@usableFromInline
11011101
internal func moveInitialize(
11021102
@_nonEphemeral from source: UnsafeMutablePointer, count: Int
@@ -1199,7 +1199,7 @@ extension UnsafeMutablePointer where Pointee: ~Copyable {
11991199

12001200
extension UnsafeMutablePointer {
12011201
// TODO: Merge this back into the noncopyable variant once we have @_preInverseGenerics
1202-
@available(swift, obsoleted: 5.11) // Legacy ABI compatibility
1202+
@available(swift, obsoleted: 6.0) // Legacy ABI compatibility
12031203
@usableFromInline
12041204
@_silgen_name("$sSp10moveAssign4from5countySpyxG_SitF") // To maintain ABI with moveAssign below
12051205
internal func moveUpdate(
@@ -1253,7 +1253,7 @@ extension UnsafeMutablePointer where Pointee: ~Copyable {
12531253

12541254
extension UnsafeMutablePointer {
12551255
// TODO: Merge this back into the noncopyable variant once we have @_preInverseGenerics
1256-
@available(swift, obsoleted: 5.11) // Legacy ABI compatibility
1256+
@available(swift, obsoleted: 6.0) // Legacy ABI compatibility
12571257
@usableFromInline
12581258
internal func deinitialize(count: Int) -> UnsafeMutableRawPointer {
12591259
_debugPrecondition(count >= 0, "UnsafeMutablePointer.deinitialize with negative count")
@@ -1354,7 +1354,7 @@ extension UnsafeMutablePointer {
13541354
// of `withMemoryRebound<T, Result>(to:capacity:_:)`, and provides
13551355
// an entry point for any binary linked against the stdlib binary
13561356
// for Swift 5.6 and older.
1357-
@available(swift, obsoleted: 5.11)
1357+
@available(swift, obsoleted: 6.0)
13581358
@_silgen_name("$sSp17withMemoryRebound2to8capacity_qd_0_qd__m_Siqd_0_Spyqd__GKXEtKr0_lF")
13591359
@usableFromInline
13601360
internal func _legacy_se0333_withMemoryRebound<T, Result>(
@@ -1397,7 +1397,7 @@ extension UnsafeMutablePointer where Pointee: ~Copyable {
13971397

13981398
extension UnsafeMutablePointer {
13991399
// TODO: Merge this back into the noncopyable variant once we have @_preInverseGenerics
1400-
@available(swift, obsoleted: 5.11) // Legacy ABI compatibility
1400+
@available(swift, obsoleted: 6.0) // Legacy ABI compatibility
14011401
@usableFromInline
14021402
internal subscript(i: Int) -> Pointee {
14031403
@_transparent

0 commit comments

Comments
 (0)