From 7c552bffe1ba95d40c8092fb839272235a8b00ed Mon Sep 17 00:00:00 2001 From: David Francoeur Date: Tue, 19 Dec 2023 09:14:40 -0500 Subject: [PATCH] Remove -migration and tweak predicate for xsource:3 --- buildSetup.sc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/buildSetup.sc b/buildSetup.sc index 399b63c..efd68e4 100644 --- a/buildSetup.sc +++ b/buildSetup.sc @@ -174,9 +174,8 @@ case class ScalacOption( // format: off private val allScalacOptions = Seq( - ScalacOption("-Xsource:3", isSupported = version => v211 <= version || version < v300), // Treat compiler input as Scala source for the specified version, see scala/bug#8126. + ScalacOption("-Xsource:3", isSupported = version => v211 <= version && version < v300), // Treat compiler input as Scala source for the specified version, see scala/bug#8126. ScalacOption("-deprecation", isSupported = version => version < v213 || v300 <= version), // Emit warning and location for usages of deprecated APIs. Not really removed but deprecated in 2.13. - ScalacOption("-migration", isSupported = v300 <= _), // Emit warning and location for migration issues from Scala 2. ScalacOption("-explaintypes", isSupported = _ < v300), // Explain type errors in more detail. ScalacOption("-explain-types", isSupported = v300 <= _), // Explain type errors in more detail. ScalacOption("-explain", isSupported = v300 <= _), // Explain errors in more detail.