Skip to content

Commit d7b58ec

Browse files
committed
Fix _RegexParser build when using 5.6 host tools
Add a type annotation to allow a `--bootstrap=hosttools` compiler build to work with a Swift 5.6 compiler.
1 parent 935e137 commit d7b58ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/_RegexParser/Utility/TypeConstruction.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public enum TypeConstruction {
6060
flags |= 0x10000
6161
}
6262

63-
let result = elementTypes.withContiguousStorageIfAvailable { elementTypesBuffer in
63+
let result = elementTypes.withContiguousStorageIfAvailable { elementTypesBuffer -> (value: Any.Type, state: Int) in
6464
if let labels = labels {
6565
return labels.withCString { labelsPtr in
6666
swift_getTupleTypeMetadata(

0 commit comments

Comments
 (0)