From 8290f6dc1229b80b1e5b55a05352157f05add408 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Wed, 1 Apr 2026 19:09:55 +0800 Subject: [PATCH] Update compiler/liftdestructors.nim Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- compiler/liftdestructors.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/liftdestructors.nim b/compiler/liftdestructors.nim index e4d4e288bb..e5a3cc6337 100644 --- a/compiler/liftdestructors.nim +++ b/compiler/liftdestructors.nim @@ -623,7 +623,7 @@ proc checkSelfAssignment(c: var TLiftCtx; t: PType; body, x, y: PNode) = proc elemSupportsCopyMem(t: PType): bool = ## Returns true if the element type of seq `t` supports bulk memory copy ## (i.e., has no GC refs and no destructors). - let elemType = t.elementType.skipTypes({tyVar, tyLent, tyGenericInst, tyAlias, tySink, tyInferred, tyDistinct}) + let elemType = t.elementType.skipTypes({tyVar, tyLent, tyGenericInst, tyAlias, tySink, tyInferred}) result = not containsGarbageCollectedRef(elemType) and not hasDestructor(elemType) proc genBulkCopySeq(c: var TLiftCtx; t: PType; body, x, y: PNode) =