Skip to content

Commit 22d321a

Browse files
committed
fix bootstrap
1 parent c1b76a3 commit 22d321a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

compiler/ast.nim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -744,6 +744,9 @@ type
744744
module*: int32
745745
item*: int32
746746

747+
proc `$`*(x: ItemId): string =
748+
"(module: " & $x.module & ", item: " & $x.item & ")"
749+
747750
proc `==`*(a, b: ItemId): bool {.inline.} =
748751
a.item == b.item and a.module == b.module
749752

compiler/passaux.nim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ proc verboseOpen(graph: ModuleGraph; s: PSym; idgen: IdGenerator): PPassContext
2222
# xxx consider either removing this or keeping for documentation for how to add a pass
2323
result = VerboseRef(config: graph.config, idgen: idgen)
2424

25+
import std/objectdollar
26+
2527
proc verboseProcess(context: PPassContext, n: PNode): PNode =
2628
# called from `process` in `processTopLevelStmt`.
2729
result = n

0 commit comments

Comments
 (0)