Deprecate gc v2 (#10151)
* Deprecate gc v2 * warnDeprecated now has custom messages
This commit is contained in:
parent
e7fa8f3443
commit
9faad7591e
12 changed files with 21 additions and 21 deletions
|
|
@ -470,9 +470,9 @@ proc warnAboutDeprecated(conf: ConfigRef; info: TLineInfo; s: PSym) =
|
|||
for it in pragmaNode:
|
||||
if whichPragma(it) == wDeprecated and it.safeLen == 2 and
|
||||
it[1].kind in {nkStrLit..nkTripleStrLit}:
|
||||
message(conf, info, warnDeprecated, it[1].strVal & "; " & name)
|
||||
message(conf, info, warnDeprecated, it[1].strVal & "; " & name & " is deprecated")
|
||||
return
|
||||
message(conf, info, warnDeprecated, name)
|
||||
message(conf, info, warnDeprecated, name & " is deprecated")
|
||||
|
||||
proc userError(conf: ConfigRef; info: TLineInfo; s: PSym) =
|
||||
let pragmaNode = extractPragma(s)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue