Skip to content

Commit 806921c

Browse files
committed
Allow ~Escapable types to be _BitwiseCopyable
1 parent a74a84a commit 806921c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

stdlib/public/core/Misc.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,4 +173,8 @@ func _rethrowsViaClosure(_ fn: () throws -> ()) rethrows {
173173

174174
@_marker public protocol Escapable {}
175175

176-
@_marker public protocol _BitwiseCopyable {}
176+
#if $NoncopyableGenerics && $NonescapableTypes
177+
@_marker public protocol _BitwiseCopyable: ~Escapable { }
178+
#else
179+
@_marker public protocol _BitwiseCopyable { }
180+
#endif

0 commit comments

Comments
 (0)