Skip to content

Commit a63e302

Browse files
authored
/uninhabited and//g + /unconstructible/uninstantiable/g.
1 parent 2e3a023 commit a63e302

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

Sources/UninhabitedTypeGuards.swift

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,99 +3,99 @@ import Result
33
// Observation
44
extension SignalProducer where Value == Never {
55
@discardableResult
6-
@available(*, deprecated, message:"`Result.success` is never delivered - value type `Never` is uninhabited and unconstructible (Use at runtime would trap)")
6+
@available(*, deprecated, message:"`Result.success` is never delivered - value type `Never` is uninstantiable (Use at runtime would trap)")
77
public func startWithResult(_ action: @escaping (Result<Value, Error>) -> Void) -> Disposable { observingUninhabitedTypeError() }
88
}
99

1010
extension SignalProducer where Value == Never, Error == NoError {
1111
@discardableResult
12-
@available(*, deprecated, message:"Observer is never called - value type `Never` and error type `NoError` are uninhabited and unconstructible (Use at runtime would trap)")
12+
@available(*, deprecated, message:"Observer is never called - value type `Never` and error type `NoError` are uninstantiable (Use at runtime would trap)")
1313
public func startWithResult(_ action: @escaping (Result<Value, Error>) -> Void) -> Disposable { observingUninhabitedTypeError() }
1414

1515
@discardableResult
16-
@available(*, deprecated, message:"Observer is never called - value type `Never` is uninhabited and unconstructible (Use at runtime would trap)")
16+
@available(*, deprecated, message:"Observer is never called - value type `Never` is uninstantiable (Use at runtime would trap)")
1717
public func startWithValues(_ action: @escaping (Value) -> Void) -> Disposable { observingUninhabitedTypeError() }
1818
}
1919

2020
extension SignalProducer where Error == NoError {
2121
@discardableResult
22-
@available(*, deprecated, message:"Observer is never called - error type `NoError` is uninhabited and unconstructible (Use at runtime would trap)")
22+
@available(*, deprecated, message:"Observer is never called - error type `NoError` is uninstantiable (Use at runtime would trap)")
2323
public func startWithFailed(_ action: @escaping (Error) -> Void) -> Disposable { observingUninhabitedTypeError() }
2424
}
2525

2626
extension Signal where Value == Never {
2727
@discardableResult
28-
@available(*, deprecated, message:"`Result.success` is never delivered - value type `Never` is uninhabited and unconstructible (Use at runtime would trap)")
28+
@available(*, deprecated, message:"`Result.success` is never delivered - value type `Never` is uninstantiable (Use at runtime would trap)")
2929
public func observeResult(_ action: @escaping (Result<Value, Error>) -> Void) -> Disposable? { observingUninhabitedTypeError() }
3030
}
3131

3232
extension Signal where Value == Never, Error == NoError {
3333
@discardableResult
34-
@available(*, deprecated, message:"Observer is never called - value type `Never` and error type `NoError` are uninhabited and unconstructible (Use at runtime would trap)")
34+
@available(*, deprecated, message:"Observer is never called - value type `Never` and error type `NoError` are uninstantiable (Use at runtime would trap)")
3535
public func observeResult(_ action: @escaping (Result<Value, Error>) -> Void) -> Disposable? { observingUninhabitedTypeError() }
3636

3737
@discardableResult
38-
@available(*, deprecated, message:"Observer is never called - value type `Never` is uninhabited and unconstructible (Use at runtime would trap)")
38+
@available(*, deprecated, message:"Observer is never called - value type `Never` is uninstantiable (Use at runtime would trap)")
3939
public func observeValues(_ action: @escaping (Value) -> Void) -> Disposable? { observingUninhabitedTypeError() }
4040
}
4141

4242
extension Signal where Error == NoError {
4343
@discardableResult
44-
@available(*, deprecated, message:"Observer is never invoked - error type `NoError` is uninhabited and unconstructible (Use at runtime would trap)")
44+
@available(*, deprecated, message:"Observer is never invoked - error type `NoError` is uninstantiable (Use at runtime would trap)")
4545
public func observeFailed(_ action: @escaping (Error) -> Void) -> Disposable? { observingUninhabitedTypeError() }
4646
}
4747

4848
// flatMap
4949
extension SignalProducer where Value == Never {
5050
@discardableResult
51-
@available(*, deprecated, message:"Use `promoteValue` instead - value type `Never` is uninhabited and unconstructible (Use at runtime would trap)")
51+
@available(*, deprecated, message:"Use `promoteValue` instead - value type `Never` is uninstantiable (Use at runtime would trap)")
5252
public func flatMap<Inner: SignalProducerConvertible>(_ strategy: FlattenStrategy, _ transform: @escaping (Value) -> Inner) -> SignalProducer<Inner.Value, Error> where Inner.Error == Error { observingUninhabitedTypeError() }
5353

5454
@discardableResult
55-
@available(*, deprecated, message:"Use `promoteValue` instead - value type `Never` is uninhabited and unconstructible (Use at runtime would trap)")
55+
@available(*, deprecated, message:"Use `promoteValue` instead - value type `Never` is uninstantiable (Use at runtime would trap)")
5656
public func flatMap<Inner: SignalProducerConvertible>(_ strategy: FlattenStrategy, _ transform: @escaping (Value) -> Inner) -> SignalProducer<Inner.Value, Error> where Inner.Error == NoError { observingUninhabitedTypeError() }
5757
}
5858

5959
extension SignalProducer where Value == Never, Error == NoError {
6060
@discardableResult
61-
@available(*, deprecated, message:"Use `promoteValue` instead - value type `Never` and error type `NoError` are uninhabited and unconstructible (Use at runtime would trap)")
61+
@available(*, deprecated, message:"Use `promoteValue` instead - value type `Never` and error type `NoError` are uninstantiable (Use at runtime would trap)")
6262
public func flatMap<Inner: SignalProducerConvertible>(_ strategy: FlattenStrategy, _ transform: @escaping (Value) -> Inner) -> SignalProducer<Inner.Value, Inner.Error> { observingUninhabitedTypeError() }
6363

6464
@discardableResult
65-
@available(*, deprecated, message:"Use `promoteValue` instead - value type `Never` and error type `NoError` are uninhabited and unconstructible (Use at runtime would trap)")
65+
@available(*, deprecated, message:"Use `promoteValue` instead - value type `Never` and error type `NoError` are uninstantiable (Use at runtime would trap)")
6666
public func flatMap<Inner: SignalProducerConvertible>(_ strategy: FlattenStrategy, _ transform: @escaping (Value) -> Inner) -> SignalProducer<Inner.Value, Inner.Error> where Inner.Error == Error { observingUninhabitedTypeError() }
6767
}
6868

6969
extension SignalProducer where Error == NoError {
7070
@discardableResult
71-
@available(*, deprecated, message:"Use `promoteError` instead - error type `NoError` is uninhabited and unconstructible (Use at runtime would trap)")
71+
@available(*, deprecated, message:"Use `promoteError` instead - error type `NoError` is uninstantiable (Use at runtime would trap)")
7272
public func flatMapError<NewError>(_ transform: @escaping (Error) -> SignalProducer<Value, NewError>) -> SignalProducer<Value, NewError> { observingUninhabitedTypeError() }
7373
}
7474

7575
extension Signal where Value == Never {
7676
@discardableResult
77-
@available(*, deprecated, message:"Use `promoteValue` instead - value type `Never` is uninhabited and unconstructible (Use at runtime would trap)")
77+
@available(*, deprecated, message:"Use `promoteValue` instead - value type `Never` is uninstantiable (Use at runtime would trap)")
7878
public func flatMap<Inner: SignalProducerConvertible>(_ strategy: FlattenStrategy, _ transform: @escaping (Value) -> Inner) -> Signal<Inner.Value, Error> where Inner.Error == Error { observingUninhabitedTypeError() }
7979

8080
@discardableResult
81-
@available(*, deprecated, message:"Use `promoteValue` instead - value type `Never` is uninhabited and unconstructible (Use at runtime would trap)")
81+
@available(*, deprecated, message:"Use `promoteValue` instead - value type `Never` is uninstantiable (Use at runtime would trap)")
8282
public func flatMap<Inner: SignalProducerConvertible>(_ strategy: FlattenStrategy, _ transform: @escaping (Value) -> Inner) -> Signal<Inner.Value, Error> where Inner.Error == NoError { observingUninhabitedTypeError() }
8383

8484
}
8585

8686
extension Signal where Value == Never, Error == NoError {
8787
@discardableResult
88-
@available(*, deprecated, message:"Use `promoteValue` instead - value type `Never` and error type `NoError` are uninhabited and unconstructible (Use at runtime would trap)")
88+
@available(*, deprecated, message:"Use `promoteValue` instead - value type `Never` and error type `NoError` are uninstantiable (Use at runtime would trap)")
8989
public func flatMap<Inner: SignalProducerConvertible>(_ strategy: FlattenStrategy, _ transform: @escaping (Value) -> Inner) -> Signal<Inner.Value, Inner.Error> { observingUninhabitedTypeError() }
9090

9191
@discardableResult
92-
@available(*, deprecated, message:"Use `promoteValue` instead - value type `Never` and error type `NoError` are uninhabited and unconstructible (Use at runtime would trap)")
92+
@available(*, deprecated, message:"Use `promoteValue` instead - value type `Never` and error type `NoError` are uninstantiable (Use at runtime would trap)")
9393
public func flatMap<Inner: SignalProducerConvertible>(_ strategy: FlattenStrategy, _ transform: @escaping (Value) -> Inner) -> Signal<Inner.Value, Inner.Error> where Inner.Error == Error { observingUninhabitedTypeError() }
9494
}
9595

9696
extension Signal where Error == NoError {
9797
@discardableResult
98-
@available(*, deprecated, message:"Use `promoteError` instead - error type `NoError` is uninhabited and unconstructible (Use at runtime would trap)")
98+
@available(*, deprecated, message:"Use `promoteError` instead - error type `NoError` is uninstantiable (Use at runtime would trap)")
9999
public func flatMapError<NewError>(_ transform: @escaping (Error) -> SignalProducer<Value, NewError>) -> Signal<Value, NewError> { observingUninhabitedTypeError() }
100100
}
101101

0 commit comments

Comments
 (0)