File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -227,9 +227,9 @@ extension RawSpan {
227
227
@_disallowFeatureSuppression ( NonescapableTypes)
228
228
@unsafe // remove when fixing the lifetime annotation
229
229
@_alwaysEmitIntoClient
230
- @lifetime ( immortal )
230
+ @lifetime ( span )
231
231
public init < Element: BitwiseCopyable > (
232
- _unsafeSpan span: borrowing Span < Element >
232
+ _unsafeSpan span: consuming Span < Element >
233
233
) {
234
234
self . init (
235
235
_unchecked: span. _pointer,
@@ -429,8 +429,8 @@ extension RawSpan {
429
429
@_disallowFeatureSuppression ( NonescapableTypes)
430
430
@unsafe
431
431
@_alwaysEmitIntoClient
432
- @lifetime ( immortal )
433
- public func _unsafeView< T: BitwiseCopyable > (
432
+ @lifetime ( self )
433
+ consuming public func _unsafeView< T: BitwiseCopyable > (
434
434
as type: T . Type
435
435
) -> Span < T > {
436
436
Span ( _unsafeBytes: . init( start: _pointer, count: _count) )
You can’t perform that action at this time.
0 commit comments