Suppress "pointless conversion" hint (#6103)

This commit is contained in:
Yuriy Glukhov 2017-07-15 15:34:27 +03:00 • committed by Andreas Rumpf
commit 4846ce0f41

View file

@ -39,7 +39,9 @@ template createCb(retFutureSym, iteratorNameSym,
raise newException(AssertionError, msg % name) raise newException(AssertionError, msg % name)
else: else:
{.gcsafe.}: {.gcsafe.}:
{.push hint[ConvFromXtoItselfNotNeeded]: off.}
next.callback = (proc() {.closure, gcsafe.})(cb) next.callback = (proc() {.closure, gcsafe.})(cb)
{.pop.}
except: except:
futureVarCompletions futureVarCompletions