From 081dfea746d77f838dc60aecaf578abbba838ec5 Mon Sep 17 00:00:00 2001 From: Andrey Makarov Date: Sun, 16 Oct 2022 21:24:16 +0300 Subject: Fix "imported but not used" warnings (#20575) --- compiler/passes.nim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'compiler/passes.nim') 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 -- cgit 1.4.1-2-gfad0