Skip to content

Commit 3aed10f

Browse files
committed
chore: drop the -Ycompile-scala2-library flag
1 parent ff3733c commit 3aed10f

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

compiler/src/dotty/tools/dotc/config/ScalaSettings.scala

-1
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,6 @@ private sealed trait YSettings:
434434
val YshowTreeIds: Setting[Boolean] = BooleanSetting(ForkSetting, "Yshow-tree-ids", "Uniquely tag all tree nodes in debugging output.")
435435
val YfromTastyIgnoreList: Setting[List[String]] = MultiStringSetting(ForkSetting, "Yfrom-tasty-ignore-list", "file", "List of `tasty` files in jar files that will not be loaded when using -from-tasty.")
436436
val YlegacyLazyVals: Setting[Boolean] = BooleanSetting(ForkSetting, "Ylegacy-lazy-vals", "Use legacy (pre 3.3.0) implementation of lazy vals.")
437-
val YcompileScala2Library: Setting[Boolean] = BooleanSetting(ForkSetting, "Ycompile-scala2-library", "Used when compiling the Scala 2 standard library.")
438437
val YprofileEnabled: Setting[Boolean] = BooleanSetting(ForkSetting, "Yprofile-enabled", "Enable profiling.")
439438
val YprofileDestination: Setting[String] = StringSetting(ForkSetting, "Yprofile-destination", "file", "Where to send profiling output - specify a file, default is to the console.", "", depends = List(YprofileEnabled -> true))
440439
val YprofileExternalTool: Setting[List[String]] = PhasesSetting(ForkSetting, "Yprofile-external-tool", "Enable profiling for a phase using an external tool hook. Generally only useful for a single phase.", "typer", depends = List(YprofileEnabled -> true))
+4-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1-
//> using options -Ycompile-scala2-library
1+
package scala
2+
3+
import scala.language.`2`
4+
25
case class UninitializedFieldError(msg: String) extends RuntimeException(msg)

tests/printing/posttyper/i22533.check

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[[syntax trees at end of posttyper]] // tests/printing/posttyper/i22533.scala
2-
package <empty> {
2+
package scala {
3+
import scala.language.2
34
@SourceFile("tests/printing/posttyper/i22533.scala") trait A() extends Any {
45
override def equals(x: Any): Boolean = ???
56
override def hashCode(): Int = ???

tests/printing/posttyper/i22533.flags

-1
This file was deleted.

tests/printing/posttyper/i22533.scala

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
//> using options -Ycompile-scala2-library
1+
package scala
2+
3+
import scala.language.`2`
24

35
trait A extends Any:
46
override def equals(x: Any): Boolean = ???

0 commit comments

Comments
 (0)