fix typo in codeReordering error msg (#10667)
* fix typo in codeReordering * reorder=>codeReordering
This commit is contained in:
parent
3520253a09
commit
9913cef872
2 changed files with 2 additions and 2 deletions
|
|
@ -241,7 +241,7 @@ proc pragmaNoForward(c: PContext, n: PNode; flag=sfNoForward) =
|
||||||
|
|
||||||
# deprecated as of 0.18.1
|
# deprecated as of 0.18.1
|
||||||
message(c.config, n.info, warnDeprecated,
|
message(c.config, n.info, warnDeprecated,
|
||||||
"use {.experimental: \"codeReordering.\".} instead; " &
|
"use {.experimental: \"codeReordering\".} instead; " &
|
||||||
(if flag == sfNoForward: "{.noForward.}" else: "{.reorder.}") & " is deprecated")
|
(if flag == sfNoForward: "{.noForward.}" else: "{.reorder.}") & " is deprecated")
|
||||||
|
|
||||||
proc processCallConv(c: PContext, n: PNode) =
|
proc processCallConv(c: PContext, n: PNode) =
|
||||||
|
|
|
||||||
|
|
@ -212,7 +212,7 @@ proc mergeSections(conf: ConfigRef; comps: seq[seq[DepN]], res: PNode) =
|
||||||
# Problematic circular dependency, we arrange the nodes into
|
# Problematic circular dependency, we arrange the nodes into
|
||||||
# their original relative order and make sure to re-merge
|
# their original relative order and make sure to re-merge
|
||||||
# consecutive type and const sections
|
# consecutive type and const sections
|
||||||
var wmsg = "Circular dependency detected. reorder pragma may not be able to" &
|
var wmsg = "Circular dependency detected. `codeReordering` pragma may not be able to" &
|
||||||
" reorder some nodes properely"
|
" reorder some nodes properely"
|
||||||
when defined(debugReorder):
|
when defined(debugReorder):
|
||||||
wmsg &= ":\n"
|
wmsg &= ":\n"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue