File tree Expand file tree Collapse file tree 8 files changed +14
-28
lines changed Expand file tree Collapse file tree 8 files changed +14
-28
lines changed Original file line number Diff line number Diff line change @@ -1744,9 +1744,9 @@ extension Array {
1744
1744
}
1745
1745
1746
1746
@available ( SwiftStdlib 6 . 2 , * )
1747
+ @_alwaysEmitIntoClient
1747
1748
public var mutableSpan : MutableSpan < Element > {
1748
1749
@lifetime ( & self )
1749
- @_alwaysEmitIntoClient
1750
1750
mutating get {
1751
1751
// _makeMutableAndUnique*() inserts begin_cow_mutation.
1752
1752
// LifetimeDependence analysis inserts call to end_cow_mutation_addr since we cannot schedule it in the stdlib for mutableSpan property.
Original file line number Diff line number Diff line change @@ -1301,9 +1301,9 @@ extension ArraySlice {
1301
1301
}
1302
1302
1303
1303
@available ( SwiftStdlib 6 . 2 , * )
1304
+ @_alwaysEmitIntoClient
1304
1305
public var mutableSpan : MutableSpan < Element > {
1305
1306
@lifetime ( & self )
1306
- @_alwaysEmitIntoClient
1307
1307
mutating get {
1308
1308
// _makeMutableAndUnique*() inserts begin_cow_mutation.
1309
1309
// LifetimeDependence analysis inserts call to end_cow_mutation_addr since we cannot schedule it in the stdlib for mutableSpan property.
Original file line number Diff line number Diff line change @@ -173,9 +173,9 @@ extension CollectionOfOne {
173
173
}
174
174
175
175
@available ( SwiftStdlib 6 . 2 , * )
176
+ @_alwaysEmitIntoClient
176
177
public var mutableSpan : MutableSpan < Element > {
177
178
@lifetime ( & self )
178
- @_alwaysEmitIntoClient
179
179
mutating get {
180
180
let pointer = unsafe UnsafeMutablePointer< Element > (
181
181
Builtin . addressOfBorrow ( self )
Original file line number Diff line number Diff line change @@ -1243,9 +1243,9 @@ extension ContiguousArray {
1243
1243
}
1244
1244
1245
1245
@available ( SwiftStdlib 6 . 2 , * )
1246
+ @_alwaysEmitIntoClient
1246
1247
public var mutableSpan : MutableSpan < Element > {
1247
1248
@lifetime ( & self )
1248
- @_alwaysEmitIntoClient
1249
1249
mutating get {
1250
1250
// _makeMutableAndUnique*() inserts begin_cow_mutation.
1251
1251
// LifetimeDependence analysis inserts call to end_cow_mutation_addr since we cannot schedule it in the stdlib for mutableSpan property.
Original file line number Diff line number Diff line change @@ -575,21 +575,22 @@ extension Unsafe${Mutable}BufferPointer where Element: ~Copyable {
575
575
576
576
@unsafe
577
577
@available ( SwiftStdlib 6 . 2 , * )
578
+ @_alwaysEmitIntoClient
578
579
public var span : Span < Element > {
579
580
@lifetime ( borrow self)
580
- @_alwaysEmitIntoClient
581
+ @_transparent
581
582
get {
582
- let span = unsafe Span( _unsafeElements: self )
583
- return unsafe _override Lifetime ( span, borrowing: self )
583
+ unsafe Span( _unsafeElements: self )
584
584
}
585
585
}
586
586
% if Mutable:
587
587
588
588
@unsafe
589
589
@available ( SwiftStdlib 6 . 2 , * )
590
+ @_alwaysEmitIntoClient
590
591
public var mutableSpan : MutableSpan < Element > {
591
592
@lifetime ( borrow self)
592
- @_alwaysEmitIntoClient
593
+ @_transparent
593
594
get {
594
595
unsafe MutableSpan( _unsafeElements: self )
595
596
}
Original file line number Diff line number Diff line change @@ -1164,9 +1164,10 @@ extension Unsafe${Mutable}RawBufferPointer {
1164
1164
1165
1165
@unsafe
1166
1166
@available ( SwiftStdlib 6 . 2 , * )
1167
+ @_alwaysEmitIntoClient
1167
1168
public var mutableBytes: MutableRawSpan {
1168
1169
@lifetime ( borrow self)
1169
- @_alwaysEmitIntoClient
1170
+ @_transparent
1170
1171
get {
1171
1172
unsafe MutableRawSpan( _unsafeBytes: self )
1172
1173
}
@@ -1184,12 +1185,12 @@ extension Unsafe${Mutable}RawBufferPointer {
1184
1185
1185
1186
@unsafe
1186
1187
@available( SwiftStdlib 6.2 , * )
1188
+ @_alwaysEmitIntoClient
1187
1189
public var bytes: RawSpan {
1188
1190
@lifetime ( borrow self)
1189
- @_alwaysEmitIntoClient
1191
+ @_transparent
1190
1192
get {
1191
- let span = unsafe RawSpan( _unsafeBytes: self )
1192
- return unsafe _override Lifetime ( span, borrowing: self )
1193
+ unsafe RawSpan( _unsafeBytes: self )
1193
1194
}
1194
1195
}
1195
1196
}
Original file line number Diff line number Diff line change @@ -928,14 +928,6 @@ Added: _$ss14MutableRawSpanVN
928
928
Added: _$sSS8UTF8ViewV4spans4SpanVys5UInt8VGvg
929
929
Added: _$sSs8UTF8ViewV4spans4SpanVys5UInt8VGvg
930
930
931
- // SE-0467 mutableSpan properties
932
- Added: _$sSa11mutableSpans07MutableB0VyxGvr
933
- Added: _$ss10ArraySliceV11mutableSpans07MutableD0VyxGvr
934
- Added: _$ss15ContiguousArrayV11mutableSpans07MutableD0VyxGvr
935
- Added: _$ss15CollectionOfOneV11mutableSpans07MutableE0VyxGvr
936
- Added: _$sSrsRi_zrlE11mutableSpans07MutableB0VyxGvr
937
- Added: _$sSw12mutableBytess14MutableRawSpanVvr
938
-
939
931
// _SwiftifyInfo enum for _SwiftifyImports macro
940
932
Added: _$ss13_SwiftifyExprO5paramyABSicABmFWC
941
933
Added: _$ss13_SwiftifyExprO6returnyA2BmFWC
Original file line number Diff line number Diff line change @@ -929,14 +929,6 @@ Added: _$ss14MutableRawSpanVN
929
929
Added: _$sSS8UTF8ViewV4spans4SpanVys5UInt8VGvg
930
930
Added: _$sSs8UTF8ViewV4spans4SpanVys5UInt8VGvg
931
931
932
- // SE-0467 mutableSpan properties
933
- Added: _$sSa11mutableSpans07MutableB0VyxGvr
934
- Added: _$ss10ArraySliceV11mutableSpans07MutableD0VyxGvr
935
- Added: _$ss15ContiguousArrayV11mutableSpans07MutableD0VyxGvr
936
- Added: _$ss15CollectionOfOneV11mutableSpans07MutableE0VyxGvr
937
- Added: _$sSrsRi_zrlE11mutableSpans07MutableB0VyxGvr
938
- Added: _$sSw12mutableBytess14MutableRawSpanVvr
939
-
940
932
// _SwiftifyInfo enum for _SwiftifyImports macro
941
933
Added: _$ss13_SwiftifyExprO5paramyABSicABmFWC
942
934
Added: _$ss13_SwiftifyExprO6returnyA2BmFWC
You can’t perform that action at this time.
0 commit comments