summary refs log tree commit diff stats
path: root/lib/system
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2021-02-17 00:07:37 +0100
committerGitHub <noreply@github.com>2021-02-17 00:07:37 +0100
commite463a67c74801da832e8659065c162b37f549d64 (patch)
treebfcbf3939666e601578604e06304bac754216cc5 /lib/system
parent81703d4ad4c7dd5746f67947371bdef5a38b2ad7 (diff)
downloadNim-e463a67c74801da832e8659065c162b37f549d64.tar.gz
don't introduce 'dispose', use '=dispose', fixes #17003 [backport:1.4] (#17062)
Diffstat (limited to 'lib/system')
-rw-r--r--lib/system/arc.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/arc.nim b/lib/system/arc.nim
index 9ee367543..7f533089c 100644
--- a/lib/system/arc.nim
+++ b/lib/system/arc.nim
@@ -163,7 +163,7 @@ proc nimRawDispose(p: pointer, alignment: int) {.compilerRtl.} =
       let hdrSize = align(sizeof(RefHeader), alignment)
       alignedDealloc(p -! hdrSize, alignment)
 
-template dispose*[T](x: owned(ref T)) = nimRawDispose(cast[pointer](x), T.alignOf)
+template `=dispose`*[T](x: owned(ref T)) = nimRawDispose(cast[pointer](x), T.alignOf)
 #proc dispose*(x: pointer) = nimRawDispose(x)
 
 proc nimDestroyAndDispose(p: pointer) {.compilerRtl, raises: [].} =