From 30cb6826c01d880b852b56e0d0d69e79a2105115 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Thu, 11 Jan 2024 22:38:23 +0800 Subject: [PATCH] patches for #23129 (#23198) fixes it in the normal situation --- lib/system.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/system.nim b/lib/system.nim index 1d08c70b4e16d..38e3728974064 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -376,7 +376,7 @@ else: discard when defined(nimAllowNonVarDestructor) and arcLikeMem: - proc `=destroy`*(x: string) {.inline, magic: "Destroy".} = + proc `=destroy`*(x: string) {.inline, magic: "Destroy", enforceNoRaises.} = discard proc `=destroy`*[T](x: seq[T]) {.inline, magic: "Destroy".} =