We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9073576 commit 9936393Copy full SHA for 9936393
stdlib/public/core/Span/Span.swift
@@ -370,10 +370,12 @@ extension Span where Element: Equatable {
370
@_disallowFeatureSuppression(NonescapableTypes)
371
@_alwaysEmitIntoClient
372
public func _elementsEqual(_ other: some Collection<Element>) -> Bool {
373
+#if hasFeature(LifetimeDependence)
374
let equal = other.withContiguousStorageIfAvailable {
375
_elementsEqual(Span(_unsafeElements: $0))
376
}
377
if let equal { return equal }
378
+#endif
379
380
guard count == other.count else { return false }
381
if count == 0 { return true }
0 commit comments