Skip to content

Commit 44e9417

Browse files
committed
[stdlib] UnsafeMutablePointer.allocate: Fix thinko
1 parent 912ddd4 commit 44e9417

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/core/UnsafePointer.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ extension UnsafeMutablePointer {
738738
}
739739
}
740740

741-
extension UnsafeMutablePointer {
741+
extension UnsafeMutablePointer where Pointee: ~Copyable {
742742
/// Allocates uninitialized memory for the specified number of instances of
743743
/// type `Pointee`.
744744
///
@@ -787,7 +787,7 @@ extension UnsafeMutablePointer {
787787
}
788788
}
789789

790-
extension UnsafeMutablePointer where Pointee: ~Copyable {
790+
extension UnsafeMutablePointer {
791791
// TODO: Merge this back into the noncopyable variant once we have @_preInverseGenerics
792792
@available(swift, obsoleted: 5.11) // Legacy ABI compatibility
793793
@usableFromInline

0 commit comments

Comments
 (0)