Skip to content

Commit 2006735

Browse files
committed
Mutable[Raw]Span.init() does not need @_unsafeNonescapableResult
It isn't clear why @_unsafeNonescapableResult was applied to Mutable[Raw]Span.init(). It was either a mistake or temporary workaround for some compiler bug.
1 parent d532448 commit 2006735

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

stdlib/public/core/Span/MutableRawSpan.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ public struct MutableRawSpan: ~Copyable & ~Escapable {
4242
}
4343

4444
@unsafe
45-
@_unsafeNonescapableResult
4645
@_alwaysEmitIntoClient
4746
@lifetime(borrow pointer)
4847
internal init(

stdlib/public/core/Span/MutableSpan.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ public struct MutableSpan<Element: ~Copyable>
4343
}
4444

4545
@unsafe
46-
@_unsafeNonescapableResult
4746
@_alwaysEmitIntoClient
4847
@lifetime(borrow start)
4948
internal init(

0 commit comments

Comments
 (0)