summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2021-02-23 01:40:40 -0800
committerGitHub <noreply@github.com>2021-02-23 10:40:40 +0100
commitb1a3651ae4e2db9ea46ab5c6c82f554d963d8506 (patch)
treee39db667f35dd2fc27f3b5b2ddddc7e6bea21a9b
parent7c2ac988805111df999dd4f586471627ee80efbb (diff)
downloadNim-b1a3651ae4e2db9ea46ab5c6c82f554d963d8506.tar.gz
fix `UnusedImport` for `nim c compiler/nim` (#17152)
-rw-r--r--compiler/ic/cbackend.nim7
1 files changed, 4 insertions, 3 deletions
diff --git a/compiler/ic/cbackend.nim b/compiler/ic/cbackend.nim
index 7670b34a6..eda54c438 100644
--- a/compiler/ic/cbackend.nim
+++ b/compiler/ic/cbackend.nim
@@ -18,11 +18,12 @@
 ## also doing cross-module dependency tracking and DCE that we don't need
 ## anymore. DCE is now done as prepass over the entire packed module graph.
 
-import std / [intsets, algorithm]
-import ".." / [ast, options, lineinfos, modulegraphs, cgendata, cgen,
+import std/[packedsets, algorithm]
+  # std/intsets would give `UnusedImport`, pending https://github.com/nim-lang/Nim/issues/14246
+import ".."/[ast, options, lineinfos, modulegraphs, cgendata, cgen,
   pathutils, extccomp, msgs]
 
-import packed_ast, to_packed_ast, bitabs, dce, rodfiles
+import packed_ast, to_packed_ast, dce, rodfiles
 
 proc unpackTree(g: ModuleGraph; thisModule: int;
                 tree: PackedTree; n: NodePos): PNode =