Skip to content

Commit febfd34

Browse files
committed
[stdlib] Make MemoryLayout techically copyable
It’s a caseless enum, but there’s no reason to change this aspect of it.
1 parent 2d23ab3 commit febfd34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/core/MemoryLayout.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@
4040
/// byteCount: count * MemoryLayout<Point>.stride,
4141
/// alignment: MemoryLayout<Point>.alignment)
4242
@frozen // namespace
43-
public enum MemoryLayout<T: ~Copyable> {}
43+
public enum MemoryLayout<T: ~Copyable>: Copyable {}
4444

4545
@available(*, unavailable)
46-
extension MemoryLayout : _BitwiseCopyable {}
46+
extension MemoryLayout: _BitwiseCopyable {}
4747

4848
extension MemoryLayout where T: ~Copyable {
4949
/// The contiguous memory footprint of `T`, in bytes.

0 commit comments

Comments
 (0)