Skip to content

Commit 20b85ed

Browse files
authored
Merge pull request swiftlang#76406 from glessard/rdar96837923-span
2 parents 0d7054b + 4fe9328 commit 20b85ed

File tree

8 files changed

+1659
-2
lines changed

8 files changed

+1659
-2
lines changed

stdlib/public/core/Builtin.swift

+3-2
Original file line numberDiff line numberDiff line change
@@ -754,9 +754,10 @@ func _COWBufferForReading<T: AnyObject>(_ object: T) -> T {
754754
/// Returns `true` if type is a POD type. A POD type is a type that does not
755755
/// require any special handling on copying or destruction.
756756
@_transparent
757+
@_preInverseGenerics
757758
public // @testable
758-
func _isPOD<T>(_ type: T.Type) -> Bool {
759-
return Bool(Builtin.ispod(type))
759+
func _isPOD<T: ~Copyable & ~Escapable>(_ type: T.Type) -> Bool {
760+
Bool(Builtin.ispod(type))
760761
}
761762

762763
/// Returns `true` if `type` is known to refer to a concrete type once all

stdlib/public/core/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ split_embedded_sources(
154154
EMBEDDED Slice.swift
155155
EMBEDDED SmallString.swift
156156
EMBEDDED Sort.swift
157+
EMBEDDED Span/RawSpan.swift
158+
EMBEDDED Span/Span.swift
157159
EMBEDDED StaticString.swift
158160
EMBEDDED StaticPrint.swift
159161
EMBEDDED Stride.swift

stdlib/public/core/GroupInfo.json

+4
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,10 @@
197197
"UnsafeBufferPointerSlice.swift",
198198
"UnsafeRawBufferPointer.swift"
199199
],
200+
"Span": [
201+
"RawSpan.swift",
202+
"Span.swift"
203+
],
200204
"Protocols": [
201205
"CompilerProtocols.swift",
202206
"ShadowProtocols.swift"

0 commit comments

Comments
 (0)