File tree 2 files changed +2
-5
lines changed
compiler/src/dotty/tools/dotc
2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ class Driver {
75
75
inContext(ictx) {
76
76
if ! ctx.settings.YdropComments .value || ctx.mode.is(Mode .ReadComments ) then
77
77
ictx.setProperty(ContextDoc , new ContextDocstrings )
78
- if Feature .enabledBySetting(nme.Scala2Compat ) && false then // TODO: enable
78
+ if Feature .enabledBySetting(nme.Scala2Compat ) then
79
79
report.warning(" -language:Scala2Compat will go away; use -source 3.0-migration instead" )
80
80
val fileNames = CompilerCommand .checkUsage(summary, sourcesRequired)
81
81
fromTastySetup(fileNames, ctx)
Original file line number Diff line number Diff line change @@ -784,10 +784,7 @@ object Build {
784
784
)
785
785
786
786
lazy val tastyCoreSettings = Seq (
787
- scalacOptions ~= { old =>
788
- val (language, other) = old.partition(_.startsWith(" -language:" ))
789
- other :+ (language.headOption.map(_ + " ,Scala2Compat" ).getOrElse(" -source:3.0-migration" ))
790
- }
787
+ scalacOptions += " -source:3.0-migration"
791
788
)
792
789
793
790
lazy val `tasty-core` = project.in(file(" tasty" )).asTastyCore(NonBootstrapped )
You can’t perform that action at this time.
0 commit comments