Here is the code from asyncpg package in apg_core.nim, it works before and doesn't now:
# cast[<v>](addr <n>[0])
proc castPointer0(n: NimNode, v: string): NimNode {.compileTime.} =
  result = newNimNode(nnkCast).add(
    newIdentNode(v),
    newNimNode(nnkCommand).add(
      newIdentNode("addr"),
      newNimNode(nnkBracketExpr).add(n, newLit(0))
    )
  )
2018-05-15 13:08:36

I don't know how castPointer0 is used. But my experience tells me it should never have been used in the first place. You can only take the address of the first element of a string when the string is not empty.

Create an issue in the issue tracker. https://github.com/cheatfate/asyncpg/issues

2018-05-15 15:06:20
<<<••12••>>>