mirror of
https://github.com/apple/swift-collections
synced 2026-11-29 05:14:20 +00:00
[BasicContainers, DequeModule] Resolve warnings in 6.4
This commit is contained in:
12 files changed
+14
-14
No files matched your search
@@ -305,7 +305,7 @@ extension RigidDeque /*where Element: Copyable*/ {
|
||||
/// - Complexity: O(`items.count`)
|
||||
@_alwaysEmitIntoClient
|
||||
public mutating func append(copying items: Span<Element>) {
|
||||
unsafe items.withUnsafeBufferPointer { source in
|
||||
items.withUnsafeBufferPointer { source in
|
||||
unsafe self.append(copying: source)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -350,7 +350,7 @@ extension RigidDeque /* where Element: Copyable */ {
|
||||
public mutating func insert(
|
||||
copying items: Span<Element>, at index: Int
|
||||
) {
|
||||
unsafe items.withUnsafeBufferPointer {
|
||||
items.withUnsafeBufferPointer {
|
||||
unsafe self.insert(copying: $0, at: index)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -282,7 +282,7 @@ extension RigidDeque /*where Element: Copyable*/ {
|
||||
@inlinable
|
||||
@_alwaysEmitIntoClient
|
||||
public mutating func prepend(copying items: Span<Element>) {
|
||||
unsafe items.withUnsafeBufferPointer { source in
|
||||
items.withUnsafeBufferPointer { source in
|
||||
unsafe self.prepend(copying: source)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -450,7 +450,7 @@ extension RigidDeque /* where Element: Copyable */ {
|
||||
removing subrange: Range<Int>,
|
||||
copying items: Span<Element>
|
||||
) {
|
||||
unsafe items.withUnsafeBufferPointer { buffer in
|
||||
items.withUnsafeBufferPointer { buffer in
|
||||
unsafe self.replace(removing: subrange, copying: buffer)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -368,7 +368,7 @@ extension UniqueDeque /* where Element: Copyable */ {
|
||||
public mutating func insert(
|
||||
copying items: Span<Element>, at index: Int
|
||||
) {
|
||||
unsafe items.withUnsafeBufferPointer {
|
||||
items.withUnsafeBufferPointer {
|
||||
unsafe self.insert(copying: $0, at: index)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -314,7 +314,7 @@ extension UniqueDeque /*where Element: Copyable*/ {
|
||||
@inlinable
|
||||
@_alwaysEmitIntoClient
|
||||
public mutating func prepend(copying items: Span<Element>) {
|
||||
unsafe items.withUnsafeBufferPointer { source in
|
||||
items.withUnsafeBufferPointer { source in
|
||||
unsafe self.prepend(copying: source)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -459,7 +459,7 @@ extension UniqueDeque /* where Element: Copyable */ {
|
||||
removing subrange: Range<Int>,
|
||||
copying items: Span<Element>
|
||||
) {
|
||||
unsafe items.withUnsafeBufferPointer { buffer in
|
||||
items.withUnsafeBufferPointer { buffer in
|
||||
unsafe self.replace(removing: subrange, copying: buffer)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user