Skip to content

Commit 30ae7ae

Browse files
committed
Fix diagnostics breakage
Someone changed TastyPrinter.printContents to return a string without actually printing anything. Furthermore this was done without checking who else uses the function, which means that importan diagnostics broke. Thank you very much! I spent about an hour figuring out what went wrong.
1 parent 01f0ac7 commit 30ae7ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/Pickler.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class Pickler extends Phase {
7878
// println(i"rawBytes = \n$rawBytes%\n%") // DEBUG
7979
if (pickling ne noPrinter) {
8080
println(i"**** pickled info of $cls")
81-
new TastyPrinter(pickler.assembleParts()).printContents()
81+
println(new TastyPrinter(pickler.assembleParts()).printContents())
8282
}
8383
}
8484
}

0 commit comments

Comments
 (0)