Skip to content

Commit 98b20d7

Browse files
committed
system: use sink parameter for sysFatal
The parameter was previously inferred as a `sink` parameter, but now it isn't. A `sink` parameter is require here, due to cleanup in compilerprocs not working in case a call raises.
1 parent f136585 commit 98b20d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/system/fatal.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ elif defined(nimPanics) and not defined(nimscript) and not defined(vm):
4646
sysFatal(exceptn, message, "")
4747

4848
else:
49-
proc sysFatal(exceptn: typedesc, message: string) {.inline, noreturn.} =
49+
proc sysFatal(exceptn: typedesc, message: sink string) {.inline, noreturn.} =
5050
raise (ref exceptn)(msg: message)
5151

5252
proc sysFatal(exceptn: typedesc, message, arg: string) {.inline, noreturn.} =

0 commit comments

Comments
 (0)