mirror of
https://github.com/apple/swift-collections
synced 2026-11-29 05:14:20 +00:00
Resolve some leftover build issues
This commit is contained in:
2 files changed
+5
-1
No files matched your search
+3
-1
@@ -163,7 +163,9 @@ extension Array where Element == CustomTarget {
|
||||
name: name,
|
||||
dependencies: dependencies,
|
||||
path: "Tests",
|
||||
exclude: targets.flatMap { t in
|
||||
exclude: [
|
||||
"README.md",
|
||||
] + targets.flatMap { t in
|
||||
t.exclude.map { "\(t.name)/\($0)" }
|
||||
},
|
||||
sources: targets.map { "\($0.name)" },
|
||||
|
||||
@@ -14,6 +14,7 @@ import _CollectionsUtilities
|
||||
#endif
|
||||
|
||||
extension RandomAccessCollection {
|
||||
#if SWIFT_PACKAGE
|
||||
@inline(__always)
|
||||
internal func _index(at offset: Int) -> Index {
|
||||
index(startIndex, offsetBy: offset)
|
||||
@@ -28,6 +29,7 @@ extension RandomAccessCollection {
|
||||
internal subscript(_offset offset: Int) -> Element {
|
||||
self[_index(at: offset)]
|
||||
}
|
||||
#endif
|
||||
|
||||
@inline(__always)
|
||||
internal func _indexRange(at offsets: Range<Int>) -> Range<Index> {
|
||||
|
||||
Reference in new issue
Block a user