Skip to content

Commit 480f870

Browse files
committed
[stdlib] Mark Unsafe*BufferPointer.indices as safe
1 parent e26ddca commit 480f870

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/public/core/UnsafeBufferPointer.swift.gyb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ extension Unsafe${Mutable}BufferPointer where Element: ~Copyable {
256256
public var endIndex: Int { count }
257257

258258
@inlinable
259+
@safe
259260
@_preInverseGenerics
260261
public var indices: Range<Int> {
261262
// Not checked because init forbids negative count.

0 commit comments

Comments
 (0)