File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -426,7 +426,6 @@ extension RawSpan {
426
426
@available ( SwiftStdlib 6 . 1 , * )
427
427
extension RawSpan {
428
428
429
- //FIXME: mark closure parameter as non-escaping
430
429
/// Calls the given closure with a pointer to the underlying bytes of
431
430
/// the viewed contiguous storage.
432
431
///
@@ -633,7 +632,7 @@ extension RawSpan {
633
632
}
634
633
}
635
634
636
- //MARK: one-sided slicing operations
635
+ //MARK: prefixes and suffixes
637
636
@_disallowFeatureSuppression ( NonescapableTypes)
638
637
@available ( SwiftStdlib 6 . 1 , * )
639
638
extension RawSpan {
Original file line number Diff line number Diff line change @@ -95,7 +95,8 @@ extension Span where Element: ~Copyable {
95
95
public init (
96
96
_unsafeElements buffer: borrowing UnsafeBufferPointer < Element >
97
97
) {
98
- let baseAddress = buffer. baseAddress //FIXME: rdar://138665760
98
+ //FIXME: Workaround for https://github.com/swiftlang/swift/issues/77235
99
+ let baseAddress = buffer. baseAddress
99
100
_precondition (
100
101
( ( Int ( bitPattern: baseAddress) &
101
102
( MemoryLayout < Element > . alignment &- 1 ) ) == 0 ) ,
@@ -204,7 +205,8 @@ extension Span where Element: BitwiseCopyable {
204
205
public init (
205
206
_unsafeBytes buffer: borrowing UnsafeRawBufferPointer
206
207
) {
207
- let baseAddress = buffer. baseAddress //FIXME: rdar://138665760
208
+ //FIXME: Workaround for https://github.com/swiftlang/swift/issues/77235
209
+ let baseAddress = buffer. baseAddress
208
210
_precondition (
209
211
( ( Int ( bitPattern: baseAddress) &
210
212
( MemoryLayout < Element > . alignment &- 1 ) ) == 0 ) ,
You can’t perform that action at this time.
0 commit comments