From 2dc1be8c4708bf922dfe059fc19203724de7998e Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Wed, 12 Aug 2026 22:24:27 +0800 Subject: [PATCH] progress --- compiler/injectdestructors.nim | 2 -- 1 file changed, 2 deletions(-) diff --git a/compiler/injectdestructors.nim b/compiler/injectdestructors.nim index d7bf5d02d3..7ee65c8522 100644 --- a/compiler/injectdestructors.nim +++ b/compiler/injectdestructors.nim @@ -958,8 +958,6 @@ proc p(n: PNode; c: var Con; s: var Scope; mode: ProcessMode; tmpFlags = {sfSing if canRaise(n[0]): s.needsTry = true # A raising call needs owned storage even when its value is consumed: the # callee can partially initialize the result before control unwinds. - # Keep the call directly below `spawn` intact. Spawn lowering requires a - # call node and moves it into a generated proc that gets destructor # injection of its own. if mode == normal or (canRaise(n[0]) and inSpawn == 0): if result.typ != nil and result.typ.kind notin {tyOpenArray, tyVarargs}: