summary refs log tree commit diff stats
path: root/lib/std/assertions.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/assertions.nim')
-rw-r--r--lib/std/assertions.nim7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/std/assertions.nim b/lib/std/assertions.nim
index a249d7751..3dca644ad 100644
--- a/lib/std/assertions.nim
+++ b/lib/std/assertions.nim
@@ -38,12 +38,7 @@ proc raiseAssert*(msg: string) {.noinline, noreturn, nosinks.} =
 proc failedAssertImpl*(msg: string) {.raises: [], tags: [].} =
   ## Raises an `AssertionDefect` with `msg`, but this is hidden
   ## from the effect system. Called when an assertion failed.
-  # trick the compiler to not list `AssertionDefect` when called
-  # by `assert`.
-  # xxx simplify this pending bootstrap >= 1.4.0, after which cast not needed
-  # anymore since `Defect` can't be raised.
-  type Hide = proc (msg: string) {.noinline, raises: [], noSideEffect, tags: [].}
-  cast[Hide](raiseAssert)(msg)
+  raiseAssert(msg)
 
 template assertImpl(cond: bool, msg: string, expr: string, enabled: static[bool]) =
   when enabled: