[BasicContainers] RigidArray.isTriviallyIdentical(to:): Don’t require Equatable elements, but do allow noncopyable ones

This commit is contained in:
Karoy Lorentey committed 2026-04-08 18:31:07 -07:00
1 parent 324c48ac6b
commit b4bfd6d02e
1 file changed
+1 -1
@@ -18,7 +18,7 @@ import InternalCollectionsUtilities
#endif
@available(SwiftStdlib 5.0, *)
extension RigidArray /*: Equatable */ where Element: Equatable /* & ~Copyable */ {
extension RigidArray where Element: ~Copyable {
public func isTriviallyIdentical(to other: borrowing Self) -> Bool {
self._storage._isIdentical(to: other._storage)
&& self._count == other._count