* Revert "make `system/fatal` importable (#20718)"
This reverts commit d735c447d3.
* relieve `std/assertions` of the sysFatal dep
This commit is contained in:
parent
8fb172c7a6
commit
12a20b9fb6
5 changed files with 27 additions and 28 deletions
|
|
@ -9,8 +9,6 @@
|
|||
|
||||
## This module implements assertion handling.
|
||||
|
||||
import system/fatal
|
||||
|
||||
import std/private/miscdollars
|
||||
# ---------------------------------------------------------------------------
|
||||
# helpers
|
||||
|
|
@ -30,7 +28,7 @@ when not defined(nimHasSinkInference):
|
|||
|
||||
proc raiseAssert*(msg: string) {.noinline, noreturn, nosinks.} =
|
||||
## Raises an `AssertionDefect` with `msg`.
|
||||
sysFatal(AssertionDefect, msg)
|
||||
raise newException(AssertionDefect, msg)
|
||||
|
||||
proc failedAssertImpl*(msg: string) {.raises: [], tags: [].} =
|
||||
## Raises an `AssertionDefect` with `msg`, but this is hidden
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue