fixes 'unused module' feature for 32 bit builds of Nim for good [nobackport]
This commit is contained in:
parent
da37177ac2
commit
0e4a8bfb28
3 changed files with 6 additions and 8 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue