Skip to content

Commit 5c3459f

Browse files
authored
Added Builtin.unreachable() calls (#61422)
Previously unavailable due to #57622 (fixed)
1 parent 9411807 commit 5c3459f

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

stdlib/public/core/Mirror.swift

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -482,26 +482,23 @@ public struct Mirror {
482482
displayStyle: DisplayStyle? = nil,
483483
ancestorRepresentation: AncestorRepresentation = .generated
484484
) where C.Element == Child {
485-
// FIXME: Can't use Builtin.unreachable() due to https://github.com/apple/swift/issues/57622.
486-
self.init(reflecting: subject)
485+
Builtin.unreachable()
487486
}
488487
public init<Subject, C: Collection>(
489488
_ subject: Subject,
490489
unlabeledChildren: C,
491490
displayStyle: DisplayStyle? = nil,
492491
ancestorRepresentation: AncestorRepresentation = .generated
493492
) {
494-
// FIXME: Can't use Builtin.unreachable() due to https://github.com/apple/swift/issues/57622.
495-
self.init(reflecting: subject)
493+
Builtin.unreachable()
496494
}
497495
public init<Subject>(
498496
_ subject: Subject,
499497
children: KeyValuePairs<String, Any>,
500498
displayStyle: DisplayStyle? = nil,
501499
ancestorRepresentation: AncestorRepresentation = .generated
502500
) {
503-
// FIXME: Can't use Builtin.unreachable() due to https://github.com/apple/swift/issues/57622.
504-
self.init(reflecting: subject)
501+
Builtin.unreachable()
505502
}
506503
public let subjectType: Any.Type
507504
public let children: Children

0 commit comments

Comments
 (0)