summary refs log tree commit diff stats
path: root/compiler/suggest.nim
diff options
context:
space:
mode:
authorNeelesh Chandola <neelesh.chandola@outlook.com>2019-01-01 18:20:48 +0530
committerMiran <narimiran@disroot.org>2019-01-01 13:50:48 +0100
commit9faad7591e37fa074544206d1de17e59f56bd576 (patch)
tree5ab5e233cc4cd822f67c748eb025a4aa953dfb37 /compiler/suggest.nim
parente7fa8f3443ebe03d74fb20b7f4d0096756211463 (diff)
downloadNim-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.nim4
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)