diff --git a/compiler/aliases.nim b/compiler/aliases.nim index 42b073495b..a09c4077d6 100644 --- a/compiler/aliases.nim +++ b/compiler/aliases.nim @@ -10,7 +10,7 @@ ## Simple alias analysis for the HLO and the code generators. import - ast, astalgo, types, trees, intsets, msgs + ast, astalgo, types, trees, intsets type TAnalysisResult* = enum diff --git a/compiler/cgen.nim b/compiler/cgen.nim index c0ef4e1e32..e961530f2b 100644 --- a/compiler/cgen.nim +++ b/compiler/cgen.nim @@ -13,7 +13,7 @@ import ast, astalgo, hashes, trees, platform, magicsys, extccomp, options, intsets, nversion, nimsets, msgs, bitsets, idents, types, ccgutils, os, ropes, math, passes, wordrecg, treetab, cgmeth, - condsyms, rodutils, renderer, cgendata, ccgmerge, aliases, + rodutils, renderer, cgendata, ccgmerge, aliases, lowerings, tables, sets, ndi, lineinfos, pathutils, transf, enumtostr when not defined(leanCompiler): diff --git a/compiler/cgendata.nim b/compiler/cgendata.nim index 77445639e3..bd35f2b87e 100644 --- a/compiler/cgendata.nim +++ b/compiler/cgendata.nim @@ -10,7 +10,7 @@ ## This module contains the data structures for the C code generation phase. import - ast, ropes, passes, options, intsets, + ast, ropes, options, intsets, tables, ndi, lineinfos, pathutils, modulegraphs type diff --git a/compiler/docgen.nim b/compiler/docgen.nim index 28cbcbd8d9..e214ece4a0 100644 --- a/compiler/docgen.nim +++ b/compiler/docgen.nim @@ -15,8 +15,8 @@ import ast, strutils, strtabs, options, msgs, os, ropes, idents, wordrecg, syntaxes, renderer, lexer, packages/docutils/rstast, packages/docutils/rst, packages/docutils/rstgen, - packages/docutils/highlite, json, xmltree, cgi, trees, types, - typesrenderer, astalgo, modulepaths, lineinfos, intsets, + json, xmltree, cgi, trees, types, + typesrenderer, astalgo, lineinfos, intsets, pathutils, trees const diff --git a/compiler/main.nim b/compiler/main.nim index 35c5f9993b..f8ca2ba59f 100644 --- a/compiler/main.nim +++ b/compiler/main.nim @@ -24,8 +24,6 @@ import when not defined(leanCompiler): import jsgen, docgen, docgen2 -from magicsys import resetSysTypes - proc semanticPasses(g: ModuleGraph) = registerPass g, verbosePass registerPass g, semPass diff --git a/compiler/rodimpl.nim b/compiler/rodimpl.nim index 69b50c3911..b58f77ff6c 100644 --- a/compiler/rodimpl.nim +++ b/compiler/rodimpl.nim @@ -9,7 +9,7 @@ ## This module implements the new compilation cache. -import strutils, os, intsets, tables, ropes, db_sqlite, msgs, options, types, +import strutils, intsets, tables, ropes, db_sqlite, msgs, options, renderer, rodutils, idents, astalgo, btrees, magicsys, cgmeth, extccomp, btrees, trees, condsyms, nversion, pathutils diff --git a/compiler/transf.nim b/compiler/transf.nim index 0435ca3227..5555836857 100644 --- a/compiler/transf.nim +++ b/compiler/transf.nim @@ -20,7 +20,7 @@ import options, ast, astalgo, trees, msgs, - idents, renderer, types, passes, semfold, magicsys, cgmeth, + idents, renderer, types, semfold, magicsys, cgmeth, lowerings, injectdestructors, liftlocals, modulegraphs, lineinfos diff --git a/compiler/vmdef.nim b/compiler/vmdef.nim index c2645c803d..17c133b08b 100644 --- a/compiler/vmdef.nim +++ b/compiler/vmdef.nim @@ -10,7 +10,7 @@ ## This module contains the type definitions for the new evaluation engine. ## An instruction is 1-3 int32s in memory, it is a register based VM. -import ast, idents, intsets, options, modulegraphs, lineinfos +import ast, idents, options, modulegraphs, lineinfos const byteExcess* = 128 # we use excess-K for immediates diff --git a/lib/impure/db_sqlite.nim b/lib/impure/db_sqlite.nim index cacb421255..70538b7d67 100644 --- a/lib/impure/db_sqlite.nim +++ b/lib/impure/db_sqlite.nim @@ -103,7 +103,7 @@ {.deadCodeElim: on.} # dce option deprecated -import strutils, sqlite3 +import sqlite3 import db_common export db_common