Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions stdlib/public/core/CollectionAlgorithms.swift
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ extension MutableCollection where Self: BidirectionalCollection {
swapAt(lo, hi)
formIndex(after: &lo)
}
fatalError()
}
}

Expand Down
1 change: 1 addition & 0 deletions stdlib/public/core/Flatten.swift
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ extension FlattenSequence.Iterator: IteratorProtocol {
_inner = s!.makeIterator()
}
while true
fatalError()
}
}

Expand Down
2 changes: 2 additions & 0 deletions stdlib/public/core/HashTable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ extension _HashTable {
return Bucket(word: word, bit: bit)
}
}
fatalError()
}

@inlinable
Expand Down Expand Up @@ -413,6 +414,7 @@ extension _HashTable {
return Bucket(word: word, bit: bit)
}
}
fatalError()
}
}

Expand Down
1 change: 1 addition & 0 deletions stdlib/public/core/Join.swift
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ extension JoinedSequence.Iterator: IteratorProtocol {
return nil
}
}
fatalError()
}
}

Expand Down
3 changes: 3 additions & 0 deletions stdlib/public/core/KeyPath.swift
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ public class AnyKeyPath: _AppendKeyPath {

if optNextType == nil { return .some(offset) }
}
fatalError()
}
#else
// compiler optimizes _storedInlineOffset into a direct offset computation,
Expand Down Expand Up @@ -270,6 +271,7 @@ extension AnyKeyPath: Hashable {
return true
}
}
fatalError()
}
}
}
Expand Down Expand Up @@ -431,6 +433,7 @@ public class KeyPath<Root, Value>: PartialKeyPath<Root> {
}
}
}
fatalError()
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions stdlib/public/core/SequenceAlgorithms.swift
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ extension Sequence {
case (nil, nil): return true
}
}
fatalError()
}
}

Expand Down Expand Up @@ -425,6 +426,7 @@ extension Sequence {
return false
}
}
fatalError()
}
}

Expand Down
1 change: 1 addition & 0 deletions stdlib/public/core/StringComparison.swift
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ private func _findBoundary(

idx &-= _utf8ScalarLength(utf8, endingAt: idx)
}
fatalError()
}

@frozen
Expand Down
1 change: 1 addition & 0 deletions stdlib/public/core/StringUTF16View.swift
Original file line number Diff line number Diff line change
Expand Up @@ -945,6 +945,7 @@ extension String.UTF16View {

readIdx &+= len
}
fatalError()
}
}

Expand Down
1 change: 1 addition & 0 deletions stdlib/public/core/UTF16.swift
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ extension Unicode.UTF16 {
return (utf16Count, utf16BitUnion < 0x80)
}
}
fatalError()
}
}

Expand Down
1 change: 1 addition & 0 deletions stdlib/public/core/Unicode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,7 @@ public func transcode<
}
OutputEncoding.encodedReplacementCharacter.forEach(processCodeUnit)
}
fatalError()
}

/// Instances of conforming types are used in internal `String`
Expand Down