Skip to content

Commit 28ce920

Browse files
committed
stdlib: More SE-0193 updates
1 parent dae966c commit 28ce920

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

stdlib/public/SDK/Foundation/NSStringAPI.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,6 @@ extension StringProtocol where Index == String.Index {
436436
// self can be a Substring so we need to subtract/add this offset when
437437
// passing _ns to the Foundation APIs. Will be 0 if self is String.
438438
@inlinable
439-
@usableFromInline
440439
internal var _substringOffset: Int {
441440
return self.startIndex.encodedOffset
442441
}
@@ -448,7 +447,6 @@ extension StringProtocol where Index == String.Index {
448447
}
449448

450449
@inlinable
451-
@usableFromInline
452450
internal func _toRelativeNSRange(_ r: Range<String.Index>) -> NSRange {
453451
return NSRange(
454452
location: r.lowerBound.encodedOffset - _substringOffset,

stdlib/public/core/LifetimeManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public func withUnsafePointer<T, Result>(
162162
/// type. If you need to mutate the argument through the pointer, use
163163
/// `withUnsafeMutablePointer(to:_:)` instead.
164164
/// - Returns: The return value, if any, of the `body` closure.
165-
@_inlineable
165+
@inlinable
166166
public func withUnsafePointer<T, Result>(
167167
to value: inout T,
168168
_ body: (UnsafePointer<T>) throws -> Result

stdlib/public/core/UnsafeRawBufferPointer.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ public func withUnsafeBytes<T, Result>(
805805
/// If you want to mutate a value by writing through a pointer, use
806806
/// `withUnsafeMutableBytes(of:_:)` instead.
807807
/// - Returns: The return value, if any, of the `body` closure.
808-
@_inlineable
808+
@inlinable
809809
public func withUnsafeBytes<T, Result>(
810810
of value: T,
811811
_ body: (UnsafeRawBufferPointer) throws -> Result

0 commit comments

Comments
 (0)