summary refs log tree commit diff stats
path: root/compiler/suggest.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-08-09 16:38:10 +0200
committerAraq <rumpf_a@web.de>2019-08-09 16:38:10 +0200
commit0e4a8bfb289d707909069e72ca24efd2a074a5f1 (patch)
tree853d72108b5e6070a42460f23d4baef0ffafdb02 /compiler/suggest.nim
parentda37177ac252599c731589bf27d1e384403a047a (diff)
downloadNim-0e4a8bfb289d707909069e72ca24efd2a074a5f1.tar.gz
fixes 'unused module' feature for 32 bit builds of Nim for good [nobackport]
Diffstat (limited to 'compiler/suggest.nim')
-rw-r--r--compiler/suggest.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/suggest.nim b/compiler/suggest.nim
index 38ebb85e0..dc01916d1 100644
--- a/compiler/suggest.nim
+++ b/compiler/suggest.nim
@@ -32,7 +32,7 @@
 
 # included from sigmatch.nim
 
-import algorithm, prefixmatches, lineinfos, parseutils, linter
+import algorithm, sets, prefixmatches, lineinfos, parseutils, linter
 from wordrecg import wDeprecated, wError, wAddr, wYield, specialWords
 
 when defined(nimsuggest):
@@ -536,7 +536,7 @@ proc markOwnerModuleAsUsed(c: PContext; s: PSym) =
     var i = 0
     while i <= high(c.unusedImports):
       let candidate = c.unusedImports[i][0]
-      if candidate == module or c.exportIndirections.contains(idPairToInt(candidate.id, s.id)):
+      if candidate == module or c.exportIndirections.contains((candidate.id, s.id)):
         # mark it as used:
         c.unusedImports.del(i)
       else: