summary refs log tree commit diff stats
path: root/lib/system.nim
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2022-08-22 04:56:35 +0800
committerGitHub <noreply@github.com>2022-08-21 16:56:35 -0400
commit24944704599ee0f6558c5cf1f7394901c5099813 (patch)
tree660cf92fe12f6766851f55226a2feb5da5352b9e /lib/system.nim
parent70a8e0d65c6ada01dac22b77873a0b6a9ea846b7 (diff)
downloadNim-24944704599ee0f6558c5cf1f7394901c5099813.tar.gz
remove the merge pragma and obsolete comments (#20254)
remove the merge pragma which has been deprecated for seven years
Diffstat (limited to 'lib/system.nim')
-rw-r--r--lib/system.nim11
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/system.nim b/lib/system.nim
index 5307bec4f..16c498c85 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -1055,33 +1055,30 @@ proc newStringOfCap*(cap: Natural): string {.
   ## be achieved with the `&` operator or with `add`.
 
 proc `&`*(x: string, y: char): string {.
-  magic: "ConStrStr", noSideEffect, merge.}
+  magic: "ConStrStr", noSideEffect.}
   ## Concatenates `x` with `y`.
   ##
   ## .. code-block:: Nim
   ##   assert("ab" & 'c' == "abc")
 proc `&`*(x, y: char): string {.
-  magic: "ConStrStr", noSideEffect, merge.}
+  magic: "ConStrStr", noSideEffect.}
   ## Concatenates characters `x` and `y` into a string.
   ##
   ## .. code-block:: Nim
   ##   assert('a' & 'b' == "ab")
 proc `&`*(x, y: string): string {.
-  magic: "ConStrStr", noSideEffect, merge.}
+  magic: "ConStrStr", noSideEffect.}
   ## Concatenates strings `x` and `y`.
   ##
   ## .. code-block:: Nim
   ##   assert("ab" & "cd" == "abcd")
 proc `&`*(x: char, y: string): string {.
-  magic: "ConStrStr", noSideEffect, merge.}
+  magic: "ConStrStr", noSideEffect.}
   ## Concatenates `x` with `y`.
   ##
   ## .. code-block:: Nim
   ##   assert('a' & "bc" == "abc")
 
-# implementation note: These must all have the same magic value "ConStrStr" so
-# that the merge optimization works properly.
-
 proc add*(x: var string, y: char) {.magic: "AppendStrCh", noSideEffect.}
   ## Appends `y` to `x` in place.
   ##