Skip to content

Commit 5b40a27

Browse files
committed
Fix up sequences that lost inference
1 parent 6e17498 commit 5b40a27

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

stdlib/private/SwiftReflectionTest/SwiftReflectionTest.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,8 @@ internal struct Section {
226226

227227
/// Holds the addresses and sizes of sections related to reflection.
228228
internal struct ReflectionInfo : Sequence {
229+
internal typealias Element = Section?
230+
229231
/// The name of the loaded image.
230232
internal let imageName: String
231233

stdlib/public/RuntimeModule/Elf.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,6 +1266,8 @@ final class ElfImage<SomeElfTraits: ElfTraits>
12661266
}
12671267

12681268
struct Notes: Sequence {
1269+
typealias Element = Note
1270+
12691271
var image: ElfImage<Traits>
12701272

12711273
struct NoteIterator: IteratorProtocol {

stdlib/public/RuntimeModule/FramePointerUnwinder.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public struct FramePointerUnwinder<C: Context, M: MemoryReader>: Sequence, Itera
2121
public typealias Context = C
2222
public typealias MemoryReader = M
2323
public typealias Address = Context.Address
24+
public typealias Element = RichFrame<Address>
2425

2526
var pc: Address
2627
var fp: Address

0 commit comments

Comments
 (0)