summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2021-05-08 00:56:46 -0700
committerGitHub <noreply@github.com>2021-05-08 09:56:46 +0200
commit38b41f893a8ca21ad5ed2198866c7d6718d197fc (patch)
treed4ed381a58e4ce19f5009dccae8236671ade9cdd /lib/pure
parente224865b3b1a45a1575fd62ec902ae4715659487 (diff)
downloadNim-38b41f893a8ca21ad5ed2198866c7d6718d197fc.tar.gz
fix #17941: UnusedImport works for var/let/const/type invoked inside a generic (#17942)
* fix #17941: UnusedImport works for var/let/const/type invoked inside a generic

* fixup
Diffstat (limited to 'lib/pure')
-rw-r--r--lib/pure/base64.nim2
-rw-r--r--lib/pure/collections/deques.nim2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/base64.nim b/lib/pure/base64.nim
index daba786f2..513ec5826 100644
--- a/lib/pure/base64.nim
+++ b/lib/pure/base64.nim
@@ -132,7 +132,7 @@ template encodeInternal(s, alphabet: typed): untyped =
   result.setLen(outputIndex)
 
 template encodeImpl() {.dirty.} =
-  when nimVM:
+  when nimvm:
     block:
       let lookupTableVM = if safe: cb64safeVM else: cb64VM
       encodeInternal(s, lookupTableVM)
diff --git a/lib/pure/collections/deques.nim b/lib/pure/collections/deques.nim
index c378dff1d..fe9ceca1e 100644
--- a/lib/pure/collections/deques.nim
+++ b/lib/pure/collections/deques.nim
@@ -262,7 +262,7 @@ proc expandIfNeeded[T](deq: var Deque[T]) =
     var n = newSeq[T](cap * 2)
     var i = 0
     for x in mitems(deq):
-      when nimVM: n[i] = x # workaround for VM bug
+      when nimvm: n[i] = x # workaround for VM bug
       else: n[i] = move(x)
       inc i
     deq.data = move(n)