mirror of
https://github.com/apple/swift-collections
synced 2026-11-26 04:47:48 +00:00
Disable strict memory safety on older toolchains
It would take too much effort to try to mitigate stdlib differences. Fix low-hanging warnings, but turn off `.strictMemorySafety` on older toolchains by splitting the package manifest.
This commit is contained in:
14 files changed
+469
-63
No files matched your search
@@ -95,11 +95,11 @@ extension UniqueArray where Element: ~Copyable {
|
||||
public subscript(position: Int) -> Element {
|
||||
@inline(__always)
|
||||
unsafeAddress {
|
||||
_storage._ptr(to: position)
|
||||
unsafe _storage._ptr(to: position)
|
||||
}
|
||||
@inline(__always)
|
||||
unsafeMutableAddress {
|
||||
_storage._mutablePtr(to: position)
|
||||
unsafe _storage._mutablePtr(to: position)
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user