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 f404c8a commit 9f2859eCopy full SHA for 9f2859e
stdlib/public/Cxx/CxxSpan.swift
@@ -95,7 +95,7 @@ extension Span {
95
_unsafeCxxSpan span: borrowing T,
96
) {
97
let buffer = unsafe UnsafeBufferPointer(start: span.__dataUnsafe(), count: Int(span.size()))
98
- let newSpan = Span(_unsafeElements: buffer)
+ let newSpan = unsafe Span(_unsafeElements: buffer)
99
// 'self' is limited to the caller's scope of the variable passed to the 'span' argument.
100
self = unsafe _overrideLifetime(newSpan, borrowing: span)
101
}
0 commit comments