Skip to content

Commit 2a9fa0c

Browse files
committed
[abi] make the compatibility symbols internal
1 parent 72f4e65 commit 2a9fa0c

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

stdlib/public/core/UnsafeBufferPointer.swift.gyb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -744,8 +744,10 @@ extension Unsafe${Mutable}BufferPointer {
744744
% else:
745745
@_silgen_name("$sSR17withMemoryRebound2to_qd_0_qd__m_qd_0_SRyqd__GKXEtKr0_lF")
746746
% end
747-
public func _legacy_se0333_withMemoryRebound<T, Result>(
748-
to type: T.Type, _ body: (${Self}<T>) throws -> Result
747+
@usableFromInline
748+
internal func _legacy_se0333_withMemoryRebound<T, Result>(
749+
to type: T.Type,
750+
_ body: (${Self}<T>) throws -> Result
749751
) rethrows -> Result {
750752
if let base = _position {
751753
_debugPrecondition(MemoryLayout<Element>.stride == MemoryLayout<T>.stride)

stdlib/public/core/UnsafePointer.swift

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,10 @@ public struct UnsafePointer<Pointee>: _Pointer {
327327
// binary compiled against the stlib binary for Swift 5.6 and older.
328328
@available(*, unavailable)
329329
@_silgen_name("$sSP17withMemoryRebound2to8capacity_qd_0_qd__m_Siqd_0_SPyqd__GKXEtKr0_lF")
330-
public func _legacy_se0333_withMemoryRebound<T, Result>(to type: T.Type, capacity count: Int,
330+
@usableFromInline
331+
internal func _legacy_se0333_withMemoryRebound<T, Result>(
332+
to type: T.Type,
333+
capacity count: Int,
331334
_ body: (UnsafePointer<T>) throws -> Result
332335
) rethrows -> Result {
333336
Builtin.bindMemory(_rawValue, count._builtinWordValue, T.self)
@@ -1013,7 +1016,10 @@ public struct UnsafeMutablePointer<Pointee>: _Pointer {
10131016
// binary compiled against the stlib binary for Swift 5.6 and older.
10141017
@available(*, unavailable)
10151018
@_silgen_name("$sSp17withMemoryRebound2to8capacity_qd_0_qd__m_Siqd_0_Spyqd__GKXEtKr0_lF")
1016-
public func _legacy_se0333_withMemoryRebound<T, Result>(to type: T.Type, capacity count: Int,
1019+
@usableFromInline
1020+
internal func _legacy_se0333_withMemoryRebound<T, Result>(
1021+
to type: T.Type,
1022+
capacity count: Int,
10171023
_ body: (UnsafeMutablePointer<T>) throws -> Result
10181024
) rethrows -> Result {
10191025
Builtin.bindMemory(_rawValue, count._builtinWordValue, T.self)

0 commit comments

Comments
 (0)