File tree 4 files changed +15
-10
lines changed
toolchain/CompatibilitySpan 4 files changed +15
-10
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 , * )
Original file line number Diff line number Diff line change @@ -74,10 +74,11 @@ internal func _overrideLifetime<
74
74
}
75
75
76
76
extension Range {
77
- @_alwaysEmitIntoClient
78
- internal init ( _uncheckedBounds bounds: ( lower: Bound , upper: Bound ) ) {
79
- self . init ( uncheckedBounds: bounds)
80
- }
77
+ @unsafe
78
+ @_alwaysEmitIntoClient
79
+ internal init ( _uncheckedBounds bounds: ( lower: Bound , upper: Bound ) ) {
80
+ self . init ( uncheckedBounds: bounds)
81
+ }
81
82
}
82
83
83
84
extension Optional {
@@ -90,4 +91,4 @@ extension Optional {
90
91
_internalInvariantFailure ( " _unsafelyUnwrappedUnchecked of nil optional " )
91
92
}
92
93
}
93
- }
94
+ }
You can’t perform that action at this time.
0 commit comments