diff options
author | Neelesh Chandola <neelesh.chandola@outlook.com> | 2019-01-01 18:20:48 +0530 |
---|---|---|
committer | Miran <narimiran@disroot.org> | 2019-01-01 13:50:48 +0100 |
commit | 9faad7591e37fa074544206d1de17e59f56bd576 (patch) | |
tree | 5ab5e233cc4cd822f67c748eb025a4aa953dfb37 /compiler/suggest.nim | |
parent | e7fa8f3443ebe03d74fb20b7f4d0096756211463 (diff) | |
download | Nim-9faad7591e37fa074544206d1de17e59f56bd576.tar.gz |
Deprecate gc v2 (#10151)
* Deprecate gc v2 * warnDeprecated now has custom messages
Diffstat (limited to 'compiler/suggest.nim')
-rw-r--r-- | compiler/suggest.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/suggest.nim b/compiler/suggest.nim index d3ce46172..144b86224 100644 --- a/compiler/suggest.nim +++ b/compiler/suggest.nim @@ -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) |