summary refs log tree commit diff stats
path: root/compiler/semtempl.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-07-19 01:06:45 +0200
committerGitHub <noreply@github.com>2019-07-19 01:06:45 +0200
commita5d6080a81486412e7567658fa816c475e27e42c (patch)
treeae4d5349c81e33bd83cfe8c3ea94bc0c5e684100 /compiler/semtempl.nim
parent6d8913ee1422143baebd438f7526208193c0bd5e (diff)
parentfbb0642e278efd1b9ac4175228befc58655c3849 (diff)
downloadNim-a5d6080a81486412e7567658fa816c475e27e42c.tar.gz
Merge pull request #11766 from nim-lang/araq-detect-unused-imports
[feature] detect unused imports
Diffstat (limited to 'compiler/semtempl.nim')
-rw-r--r--compiler/semtempl.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semtempl.nim b/compiler/semtempl.nim
index 7a56f8c45..1b9b9e8a9 100644
--- a/compiler/semtempl.nim
+++ b/compiler/semtempl.nim
@@ -64,7 +64,7 @@ proc symChoice(c: PContext, n: PNode, s: PSym, r: TSymChoiceRule): PNode =
     # (s.kind notin routineKinds or s.magic != mNone):
     # for instance 'nextTry' is both in tables.nim and astalgo.nim ...
     result = newSymNode(s, info)
-    markUsed(c.config, info, s, c.graph.usageSym)
+    markUsed(c, info, s, c.graph.usageSym)
     onUse(info, s)
   else:
     # semantic checking requires a type; ``fitNode`` deals with it