Skip to content

Commit 3c961ad

Browse files
committed
[stdlib] Update attributes in LegacyABI.swift
1 parent 7ffa664 commit 3c961ad

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

stdlib/public/core/LegacyABI.swift

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,16 +88,17 @@ extension String.UTF16View {
8888
internal var _shortHeuristic: Int { return 32 }
8989
}
9090

91-
@inlinable @_transparent
91+
@available(*, unavailable)
92+
@usableFromInline
9293
internal func unimplemented_utf8_32bit(
9394
_ message: String = "",
9495
file: StaticString = #file, line: UInt = #line
9596
) -> Never {
9697
fatalError("32-bit: Unimplemented for UTF-8 support", file: file, line: line)
9798
}
9899

99-
@_transparent
100-
@inlinable
100+
@available(*, unavailable)
101+
@usableFromInline
101102
internal func _unsafePlus(_ lhs: Int, _ rhs: Int) -> Int {
102103
#if INTERNAL_CHECKS_ENABLED
103104
return lhs + rhs
@@ -106,8 +107,8 @@ internal func _unsafePlus(_ lhs: Int, _ rhs: Int) -> Int {
106107
#endif
107108
}
108109

109-
@_transparent
110-
@inlinable
110+
@available(*, unavailable)
111+
@usableFromInline
111112
internal func _unsafeMinus(_ lhs: Int, _ rhs: Int) -> Int {
112113
#if INTERNAL_CHECKS_ENABLED
113114
return lhs - rhs

0 commit comments

Comments
 (0)