Add {.noReturn.} to system.raiseAssert (#10161)

This commit is contained in:
Oscar Nihlgård
2019-01-02 17:39:53 +01:00
committed by Andreas Rumpf
parent a1e268e3dc
commit 9fb8c3d965

View File

@@ -3927,7 +3927,7 @@ proc instantiationInfo*(index = -1, fullPaths = false): tuple[
template currentSourcePath*: string = instantiationInfo(-1, true).filename
## returns the full file-system path of the current source
proc raiseAssert*(msg: string) {.noinline.} =
proc raiseAssert*(msg: string) {.noinline, noReturn.} =
sysFatal(AssertionError, msg)
proc failedAssertImpl*(msg: string) {.raises: [], tags: [].} =