From 517dd800f8e621aae0221f15c4ad7ad011c910b5 Mon Sep 17 00:00:00 2001 From: Antonis Date: Mon, 11 May 2020 14:59:51 +0300 Subject: [PATCH] better error message --- compiler/injectdestructors.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/injectdestructors.nim b/compiler/injectdestructors.nim index 9ed3d4189..09c072da7 100644 --- a/compiler/injectdestructors.nim +++ b/compiler/injectdestructors.nim @@ -398,7 +398,7 @@ proc passCopyToSink(n: PNode; c: var Con): PNode = if isLValue(n) and not isClosureEnv(n) and n.typ.skipTypes(abstractInst).kind != tyRef and c.inSpawn == 0: message(c.graph.config, n.info, hintPerformance, ("passing '$1' to a sink parameter introduces an implicit copy; " & - "use 'move($1)' to prevent it") % $n) + "if possible, rearrange your program's control flow to prevent it") % $n) else: if c.graph.config.selectedGC in {gcArc, gcOrc}: assert(not containsGarbageCollectedRef(n.typ))