File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,7 @@ public class AnyKeyPath: Hashable, _AppendKeyPath {
134
134
135
135
// Prevent normal initialization. We use tail allocation via
136
136
// allocWithTailElems().
137
+ @available ( * , unavailable)
137
138
internal init ( ) {
138
139
_internalInvariantFailure ( " use _create(...) " )
139
140
}
@@ -158,7 +159,7 @@ public class AnyKeyPath: Hashable, _AppendKeyPath {
158
159
return result
159
160
}
160
161
161
- internal func withBuffer< T> ( _ f: ( KeyPathBuffer ) throws -> T ) rethrows -> T {
162
+ final internal func withBuffer< T> ( _ f: ( KeyPathBuffer ) throws -> T ) rethrows -> T {
162
163
defer { _fixLifetime ( self ) }
163
164
164
165
let base = UnsafeRawPointer ( Builtin . projectTailElems ( self , Int32 . self) )
@@ -348,14 +349,6 @@ public class ReferenceWritableKeyPath<
348
349
349
350
internal final override class var kind : Kind { return . reference }
350
351
351
- internal final override func _projectMutableAddress(
352
- from base: UnsafePointer < Root >
353
- ) -> ( pointer: UnsafeMutablePointer < Value > , owner: AnyObject ? ) {
354
- // Since we're a ReferenceWritableKeyPath, we know we don't mutate the base
355
- // in practice.
356
- return _projectMutableAddress ( from: base. pointee)
357
- }
358
-
359
352
@usableFromInline
360
353
internal final func _projectMutableAddress( from origBase: Root )
361
354
-> ( pointer: UnsafeMutablePointer < Value > , owner: AnyObject ? ) {
You can’t perform that action at this time.
0 commit comments