Skip to content

Commit 0aec83a

Browse files
committed
Drop Compiler Version Gates
Xcode 14 RC1 ships with a Swift standard library that is too old to contain these primitives despite the compiler version being new. Just drop the gates - we can shadow these APIs in these files just fine.
1 parent 8d51778 commit 0aec83a

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

Sources/SwiftParser/CharacterInfo.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ extension Unicode.Scalar {
9393
}
9494
}
9595

96-
#if swift(<5.7)
9796
extension UnsafeRawBufferPointer {
9897
/// Returns a typed buffer to the memory referenced by this buffer,
9998
/// assuming that the memory is already bound to the specified type.
@@ -122,7 +121,6 @@ extension UnsafeRawBufferPointer {
122121
return .init(start: s.assumingMemoryBound(to: T.self), count: n)
123122
}
124123
}
125-
#endif
126124

127125
private var InfoTable: CharacterInfoTable = (
128126
// 0 NUL 1 SOH 2 STX 3 ETX

Sources/SwiftSyntax/BumpPtrAllocator.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ public class BumpPtrAllocator {
163163

164164
// MARK: Compatibilty Shims
165165

166-
#if swift(<5.7)
167166
extension UnsafeMutableRawPointer {
168167
/// Obtain the next pointer whose bit pattern is a multiple of alignment.
169168
///
@@ -181,4 +180,3 @@ extension UnsafeMutableRawPointer {
181180
return .init(bitPattern: bits)!
182181
}
183182
}
184-
#endif

0 commit comments

Comments
 (0)