@@ -262,8 +262,8 @@ extension UnsafePointer where Pointee: ~Copyable {
262
262
/// This pointer must be a pointer to the start of a previously allocated
263
263
/// memory block. The memory must not be initialized or `Pointee` must be a
264
264
/// trivial type.
265
- @inlinable
266
265
@_preInverseGenerics
266
+ @_transparent
267
267
public func deallocate( ) {
268
268
// Passing zero alignment to the runtime forces "aligned
269
269
// deallocation". Since allocation via `UnsafeMutable[Raw][Buffer]Pointer`
@@ -777,8 +777,8 @@ extension UnsafeMutablePointer where Pointee: ~Copyable {
777
777
///
778
778
/// - Parameter count: The amount of memory to allocate, counted in instances
779
779
/// of `Pointee`.
780
- @inlinable
781
780
@_preInverseGenerics
781
+ @_transparent
782
782
public static func allocate(
783
783
capacity count: Int
784
784
) -> UnsafeMutablePointer < Pointee > {
@@ -810,8 +810,8 @@ extension UnsafeMutablePointer where Pointee: ~Copyable {
810
810
/// This pointer must be a pointer to the start of a previously allocated
811
811
/// memory block. The memory must not be initialized or `Pointee` must be a
812
812
/// trivial type.
813
- @inlinable
814
813
@_preInverseGenerics
814
+ @_transparent
815
815
public func deallocate( ) {
816
816
// Passing zero alignment to the runtime forces "aligned
817
817
// deallocation". Since allocation via `UnsafeMutable[Raw][Buffer]Pointer`
@@ -898,6 +898,7 @@ extension UnsafeMutablePointer where Pointee: ~Copyable {
898
898
/// - Parameters:
899
899
/// - value: The instance to initialize this pointer's pointee to.
900
900
@_alwaysEmitIntoClient
901
+ @_transparent
901
902
public func initialize( to value: consuming Pointee ) {
902
903
Builtin . initialize ( value, self . _rawValue)
903
904
}
@@ -928,8 +929,8 @@ extension UnsafeMutablePointer where Pointee: ~Copyable {
928
929
/// `move()`, the memory is uninitialized.
929
930
///
930
931
/// - Returns: The instance referenced by this pointer.
931
- @inlinable
932
932
@_preInverseGenerics
933
+ @_transparent
933
934
public func move( ) -> Pointee {
934
935
return Builtin . take ( _rawValue)
935
936
}
@@ -1162,9 +1163,9 @@ extension UnsafeMutablePointer where Pointee: ~Copyable {
1162
1163
/// not be negative.
1163
1164
/// - Returns: A raw pointer to the same address as this pointer. The memory
1164
1165
/// referenced by the returned raw pointer is still bound to `Pointee`.
1165
- @inlinable
1166
- @_preInverseGenerics
1167
1166
@discardableResult
1167
+ @_preInverseGenerics
1168
+ @_transparent
1168
1169
public func deinitialize( count: Int ) -> UnsafeMutableRawPointer {
1169
1170
_debugPrecondition ( count >= 0 , " UnsafeMutablePointer.deinitialize with negative count " )
1170
1171
// Note: When count is statically known to be 1 the compiler will optimize
0 commit comments