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 35b8514 commit d5cb7ddCopy full SHA for d5cb7dd
stdlib/public/core/Span/RawSpan.swift
@@ -310,7 +310,7 @@ extension RawSpan {
310
/// - span: An existing `Span<T>`, which will define both this
311
/// `RawSpan`'s lifetime and the memory it represents.
312
@_alwaysEmitIntoClient
313
- @lifetime(span)
+ @lifetime(copy span)
314
public init<Element: BitwiseCopyable>(
315
_elements span: Span<Element>
316
) {
stdlib/public/core/Span/Span.swift
@@ -498,7 +498,7 @@ extension Span where Element: BitwiseCopyable {
498
extension Span where Element: BitwiseCopyable {
499
500
public var bytes: RawSpan {
501
- @lifetime(self)
+ @lifetime(copy self)
502
503
get {
504
let rawSpan = RawSpan(_elements: self)
0 commit comments