summary refs log tree commit diff stats
path: root/compiler/passes.nim
diff options
context:
space:
mode:
authorAndrey Makarov <ph.makarov@gmail.com>2022-10-16 21:24:16 +0300
committerGitHub <noreply@github.com>2022-10-16 20:24:16 +0200
commit081dfea746d77f838dc60aecaf578abbba838ec5 (patch)
treed64579fb375185a759931c3f886fe4068a033d66 /compiler/passes.nim
parent0bacdf5fdf86a01132d2817599ad0a7f155a101e (diff)
downloadNim-081dfea746d77f838dc60aecaf578abbba838ec5.tar.gz
Fix "imported but not used" warnings (#20575)
Diffstat (limited to 'compiler/passes.nim')
-rw-r--r--compiler/passes.nim5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/passes.nim b/compiler/passes.nim
index 46c36f9d1..a8f67300c 100644
--- a/compiler/passes.nim
+++ b/compiler/passes.nim
@@ -14,7 +14,10 @@ import
   options, ast, llstream, msgs,
   idents,
   syntaxes, modulegraphs, reorder,
-  lineinfos, pathutils, std/sha1, packages
+  lineinfos, pathutils, packages
+
+when defined(nimsuggest):
+  import std/sha1
 
 when defined(nimPreviewSlimSystem):
   import std/syncio