File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ extension Error: FixableError {
50
50
}
51
51
}
52
52
53
- @ noreturn public func handle( error: Any , usage: ( ( String ) -> Void ) -> Void ) {
53
+ public func handle( error: Any , usage: ( ( String ) -> Void ) -> Void ) -> Never {
54
54
55
55
switch error {
56
56
case OptionParserError . multipleModesSpecified( let modes) :
Original file line number Diff line number Diff line change 10
10
11
11
import libc
12
12
13
- @ noreturn public func exit( _ status: Int32 ) {
13
+ public func exit( _ status: Int32 ) -> Never {
14
14
libc. exit ( status)
15
15
}
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ import var libc.errno
28
28
*/
29
29
public func getcwd( ) -> String {
30
30
31
- @ noreturn func error( ) {
31
+ func error( ) -> Never {
32
32
fputs ( " error: no current directory \n " , libc. stderr)
33
33
libc. exit ( 2 )
34
34
}
You can’t perform that action at this time.
0 commit comments