Add {.noReturn.} to system.raiseAssert (#10161)
This commit is contained in:
parent
a1e268e3dc
commit
9fb8c3d965
1 changed files with 1 additions and 1 deletions
|
|
@ -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: [].} =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue