revert #20719; relieve std/assertions of the sysFatal dep (#20743)

* Revert "make `system/fatal` importable (#20718)"

This reverts commit d735c447d3.

* relieve `std/assertions` of the sysFatal dep
This commit is contained in:
ringabout 2022-11-04 16:53:19 +08:00 • committed by GitHub
commit 12a20b9fb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 27 additions and 28 deletions

View file

@ -8,7 +8,7 @@ tassert_c.nim(35) tassert_c
tassert_c.nim(34) foo
assertions.nim(*) failedAssertImpl
assertions.nim(*) raiseAssert
fatal.nim(*) sysFatal"""
"""
proc tmatch(x, p: string): bool =
var i = 0

View file

@ -1,10 +1,10 @@
discard """
errormsg: "unhandled exception:"
file: "system/fatal.nim"
errormsg: "unhandled exception: t9768.nim(24, 12) `a < 4` [AssertionDefect]"
file: "std/assertions.nim"
nimout: '''
stack trace: (most recent call last)
t9768.nim(28, 33) main
t9768.nim(23, 11) foo1
t9768.nim(29, 33) main
t9768.nim(24, 11) foo1
'''
"""
@ -17,6 +17,7 @@ t9768.nim(23, 11) foo1
## line 20
proc foo1(a: int): auto =