File tree Expand file tree Collapse file tree 4 files changed +22
-10
lines changed
test/api-digester/Outputs Expand file tree Collapse file tree 4 files changed +22
-10
lines changed Original file line number Diff line number Diff line change 16
16
17
17
// A sliced _StringGuts, convenient for unifying String/Substring comparison,
18
18
// hashing, and RRC.
19
- @_fixed_layout
20
- @usableFromInline
21
19
internal struct _StringGutsSlice {
22
- @usableFromInline
23
20
internal var _guts : _StringGuts
24
21
25
- @usableFromInline
26
22
internal var _offsetRange : Range < Int >
27
23
28
- @inlinable @ inline ( __always)
24
+ @inline ( __always)
29
25
internal init ( _ guts: _StringGuts ) {
30
26
self . _guts = guts
31
27
self . _offsetRange = 0 ..< self . _guts. count
32
28
}
33
29
34
- @inlinable @ inline ( __always)
30
+ @inline ( __always)
35
31
internal init ( _ guts: _StringGuts , _ offsetRange: Range < Int > ) {
36
32
self . _guts = guts
37
33
self . _offsetRange = offsetRange
@@ -83,7 +79,7 @@ internal struct _StringGutsSlice {
83
79
}
84
80
}
85
81
86
- @inlinable @ inline ( __always)
82
+ @inline ( __always)
87
83
internal func withFastUTF8< R> (
88
84
_ f: ( UnsafeBufferPointer < UInt8 > ) throws -> R
89
85
) rethrows -> R {
Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ extension StringProtocol {
45
45
}
46
46
47
47
extension _StringGutsSlice {
48
- @usableFromInline // @opaque
49
48
@inline ( never) // slow-path
50
49
internal func _normalizedHash( into hasher: inout Hasher ) {
51
50
if self . isNFCFastUTF8 {
Original file line number Diff line number Diff line change @@ -132,7 +132,6 @@ extension StringProtocol {
132
132
get { return String ( self ) }
133
133
}
134
134
135
- @inlinable // Eliminate for String, Substring
136
135
internal var _gutsSlice : _StringGutsSlice {
137
136
@_specialize ( where Self == String)
138
137
@_specialize ( where Self == Substring)
@@ -152,7 +151,8 @@ extension StringProtocol {
152
151
@inline ( __always) get {
153
152
let start = startIndex
154
153
let end = endIndex
155
- _internalInvariant ( start. transcodedOffset == 0 && end. transcodedOffset == 0 )
154
+ _internalInvariant (
155
+ start. transcodedOffset == 0 && end. transcodedOffset == 0 )
156
156
return Range ( uncheckedBounds: ( start. encodedOffset, end. encodedOffset) )
157
157
}
158
158
}
Original file line number Diff line number Diff line change @@ -483,6 +483,23 @@ Protocol _NSEnumerator has been removed
483
483
Protocol _NSFastEnumeration has been removed
484
484
Protocol _ShadowProtocol has been removed
485
485
486
+ Constructor _StringGutsSlice.init(_:) has been removed
487
+ Constructor _StringGutsSlice.init(_:_:) has been removed
488
+ Func _StringGutsSlice._normalizedHash(into:) has been removed
489
+ Func _StringGutsSlice.compare(with:expecting:) has been removed
490
+ Func _StringGutsSlice.withFastUTF8(_:) has been removed
491
+ Struct _StringGutsSlice is now without @_fixed_layout
492
+ Var StringProtocol._gutsSlice has been removed
493
+ Var _StringGutsSlice._guts has been removed
494
+ Var _StringGutsSlice._offsetRange has been removed
495
+ Var _StringGutsSlice.count has been removed
496
+ Var _StringGutsSlice.end has been removed
497
+ Var _StringGutsSlice.isASCII has been removed
498
+ Var _StringGutsSlice.isFastUTF8 has been removed
499
+ Var _StringGutsSlice.isNFCFastUTF8 has been removed
500
+ Var _StringGutsSlice.range has been removed
501
+ Var _StringGutsSlice.start has been removed
502
+
486
503
Func ManagedBufferPointer._sanityCheckValidBufferClass(_:creating:) has been removed
487
504
Func _sanityCheck(_:_:file:line:) has been removed
488
505
Func _sanityCheckFailure(_:file:line:) has been removed
You can’t perform that action at this time.
0 commit comments