nixpkgs/pkgs/development/compilers/nim/toLocation.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
535 B
Diff
Raw Normal View History

diff --git a/lib/std/private/miscdollars.nim b/lib/std/private/miscdollars.nim
2021-10-19 11:07:57 +00:00
index 840fedf54..6c3436308 100644
--- a/lib/std/private/miscdollars.nim
+++ b/lib/std/private/miscdollars.nim
2021-10-19 11:07:57 +00:00
@@ -6,9 +6,8 @@ template toLocation*(result: var string, file: string | cstring, line: int, col:
# it can be done in a single place.
result.add file
if line > 0:
- result.add "("
2021-10-19 11:07:57 +00:00
+ result.add ":"
addInt(result, line)
if col > 0:
- result.add ", "
2021-10-19 11:07:57 +00:00
+ result.add ":"
addInt(result, col)
- result.add ")"