From 717264b8940a337b123ee42e09c9b02a2a5c3b11 Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Mon, 14 Nov 2016 23:44:56 +0100 Subject: -Ytest-pickler: avoid forcing anything when there's a difference This might cause a stale symbol exception and make it harder to find the source of the problem. --- compiler/src/dotty/tools/dotc/transform/Pickler.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler') diff --git a/compiler/src/dotty/tools/dotc/transform/Pickler.scala b/compiler/src/dotty/tools/dotc/transform/Pickler.scala index 61c3ca5de..bf37067b1 100644 --- a/compiler/src/dotty/tools/dotc/transform/Pickler.scala +++ b/compiler/src/dotty/tools/dotc/transform/Pickler.scala @@ -101,7 +101,7 @@ class Pickler extends Phase { if (previous != unpickled) { output("before-pickling.txt", previous) output("after-pickling.txt", unpickled) - ctx.error(i"""pickling difference for ${cls.fullName} in ${cls.sourceFile}, for details: + ctx.error(s"""pickling difference for ${cls} in ${cls.sourceFile}, for details: | | diff before-pickling.txt after-pickling.txt""") } -- cgit v1.2.3