File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed
stdlib/public/Concurrency Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,9 @@ extension ContinuousClock: Clock {
144
144
extension ContinuousClock {
145
145
@available ( SwiftStdlib 5 . 7 , * )
146
146
@_alwaysEmitIntoClient
147
- public var systemEpoch : Instant { unsafeBitCast ( Duration . seconds ( 0 ) , to: Instant . self) }
147
+ public var systemEpoch : Instant {
148
+ unsafe unsafeBitCast( Duration . seconds ( 0 ) , to: Instant . self)
149
+ }
148
150
}
149
151
150
152
@available ( SwiftStdlib 5 . 7 , * )
Original file line number Diff line number Diff line change @@ -385,7 +385,7 @@ extension SerialExecutor {
385
385
#if SWIFT_CONCURRENCY_USES_DISPATCH
386
386
@available ( SwiftStdlib 6 . 2 , * )
387
387
private var _dispatchQueue : OpaquePointer ? {
388
- return _getDispatchQueueForExecutor ( self . asUnownedSerialExecutor ( ) )
388
+ return unsafe _getDispatchQueueForExecutor ( self . asUnownedSerialExecutor ( ) )
389
389
}
390
390
#endif
391
391
@@ -395,8 +395,8 @@ extension SerialExecutor {
395
395
return true
396
396
}
397
397
#if SWIFT_CONCURRENCY_USES_DISPATCH
398
- if let rhsQueue = rhs. _dispatchQueue {
399
- if let ourQueue = _dispatchQueue, ourQueue == rhsQueue {
398
+ if let rhsQueue = unsafe rhs. _dispatchQueue {
399
+ if let ourQueue = unsafe _dispatchQueue, ourQueue == rhsQueue {
400
400
return true
401
401
}
402
402
return false
Original file line number Diff line number Diff line change @@ -132,7 +132,9 @@ extension SuspendingClock: Clock {
132
132
extension SuspendingClock {
133
133
@available ( SwiftStdlib 5 . 7 , * )
134
134
@_alwaysEmitIntoClient
135
- public var systemEpoch : Instant { unsafeBitCast ( Duration . seconds ( 0 ) , to: Instant . self) }
135
+ public var systemEpoch : Instant {
136
+ unsafe unsafeBitCast( Duration . seconds ( 0 ) , to: Instant . self)
137
+ }
136
138
}
137
139
138
140
@available ( SwiftStdlib 5 . 7 , * )
You can’t perform that action at this time.
0 commit comments