File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 40
40
/// byteCount: count * MemoryLayout<Point>.stride,
41
41
/// alignment: MemoryLayout<Point>.alignment)
42
42
@frozen // namespace
43
- public enum MemoryLayout < T: ~ Copyable> : ~ BitwiseCopyable, Copyable { }
43
+ public enum MemoryLayout < T: ~ Copyable & ~ Escapable>
44
+ : ~ BitwiseCopyable, Copyable, Escapable { }
44
45
45
- extension MemoryLayout where T: ~ Copyable {
46
+ extension MemoryLayout where T: ~ Copyable & ~ Escapable {
46
47
/// The contiguous memory footprint of `T`, in bytes.
47
48
///
48
49
/// A type's size does not include any dynamically allocated or out of line
@@ -81,7 +82,7 @@ extension MemoryLayout where T: ~Copyable {
81
82
}
82
83
}
83
84
84
- extension MemoryLayout where T: ~ Copyable {
85
+ extension MemoryLayout where T: ~ Copyable & ~ Escapable {
85
86
/// Returns the contiguous memory footprint of the given instance.
86
87
///
87
88
/// The result does not include any dynamically allocated or out of line
You can’t perform that action at this time.
0 commit comments