Skip to content

Commit

Permalink
Remove -migration and tweak predicate for xsource:3
Browse files Browse the repository at this point in the history
  • Loading branch information
daddykotex committed Dec 19, 2023
1 parent d8759a4 commit 7c552bf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions buildSetup.sc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7c552bf

Please sign in to comment.