From 2eeed25d285107457fc47520323097edccd48345 Mon Sep 17 00:00:00 2001 From: Adrien Piquerez Date: Thu, 20 Oct 2022 17:32:00 +0200 Subject: [PATCH] Fix Scala 2.12.10 compilation --- .../scala-2/scala/tools/nsc/ExpressionCompilerBridge.scala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/expression-compiler/src/main/scala-2/scala/tools/nsc/ExpressionCompilerBridge.scala b/expression-compiler/src/main/scala-2/scala/tools/nsc/ExpressionCompilerBridge.scala index cdeda615a..f748ea2ac 100644 --- a/expression-compiler/src/main/scala-2/scala/tools/nsc/ExpressionCompilerBridge.scala +++ b/expression-compiler/src/main/scala-2/scala/tools/nsc/ExpressionCompilerBridge.scala @@ -6,7 +6,6 @@ import java.{util => ju} import scala.jdk.CollectionConverters._ import scala.tools.nsc.reporters.StoreReporter import scala.util.control.NonFatal -import scala.annotation final class ExpressionCompilerBridge { def run( @@ -32,7 +31,7 @@ final class ExpressionCompilerBridge { ) ++ options :+ sourceFile.toString val command = new CompilerCommand(args, errorConsumer.accept(_)) - val reporter = new StoreReporter(): @annotation.nowarn() + val reporter = new StoreReporter() val global = new ExpressionGlobal( command.settings, reporter,