Deprecate gc v2 (#10151)

* Deprecate gc v2

* warnDeprecated now has custom messages
This commit is contained in:
Neelesh Chandola 2019-01-01 18:20:48 +05:30 • committed by Miran
commit 9faad7591e
12 changed files with 21 additions and 21 deletions

View file

@ -147,7 +147,7 @@ proc getModuleName*(conf: ConfigRef; n: PNode): string =
# hacky way to implement 'x / y /../ z':
result = renderTree(n, {renderNoComments}).replace(" ")
of nkDotExpr:
localError(conf, n.info, warnDeprecated, "using '.' instead of '/' in import paths")
localError(conf, n.info, warnDeprecated, "using '.' instead of '/' in import paths is deprecated")
result = renderTree(n, {renderNoComments}).replace(".", "/")
of nkImportAs:
result = getModuleName(conf, n.sons[0])