File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -200,9 +200,8 @@ extension Substring: StringProtocol {
200
200
return _slice. distance ( from: start, to: end)
201
201
}
202
202
203
- @inlinable
204
203
public subscript( i: Index ) -> Character {
205
- @ inline ( __always ) get { return _slice [ i] }
204
+ get { return _slice [ i] }
206
205
}
207
206
208
207
public mutating func replaceSubrange< C> (
@@ -322,7 +321,6 @@ extension Substring: CustomDebugStringConvertible {
322
321
}
323
322
324
323
extension Substring : LosslessStringConvertible {
325
- @inlinable
326
324
public init ( _ content: String ) {
327
325
self = content [ ... ]
328
326
}
@@ -800,7 +798,6 @@ extension Substring: ExpressibleByStringLiteral {
800
798
801
799
// String/Substring Slicing
802
800
extension String {
803
- @inlinable
804
801
@available ( swift, introduced: 4 )
805
802
public subscript( r: Range < Index > ) -> Substring {
806
803
_boundsCheck ( r)
@@ -809,7 +806,6 @@ extension String {
809
806
}
810
807
811
808
extension Substring {
812
- @inlinable
813
809
@available ( swift, introduced: 4 )
814
810
public subscript( r: Range < Index > ) -> Substring {
815
811
return Substring ( _slice [ r] )
You can’t perform that action at this time.
0 commit comments