File tree 3 files changed +3
-6
lines changed
compiler/src/dotty/tools/dotc
library/src/scalaShadowing
3 files changed +3
-6
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
ctx.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 @@ -213,7 +213,7 @@ object language {
213
213
}
214
214
215
215
/** Where imported, a backwards compatibility mode for Scala2 is enabled */
216
- object Scala2Compat
216
+ @ deprecated object Scala2Compat
217
217
218
218
/** Where imported, auto-tupling is disabled */
219
219
object noAutoTupling
Original file line number Diff line number Diff line change @@ -783,10 +783,7 @@ object Build {
783
783
)
784
784
785
785
lazy val tastyCoreSettings = Seq (
786
- scalacOptions ~= { old =>
787
- val (language, other) = old.partition(_.startsWith(" -language:" ))
788
- other :+ (language.headOption.map(_ + " ,Scala2Compat" ).getOrElse(" -source:3.0-migration" ))
789
- }
786
+ scalacOptions ~= (_ ++ Seq (" -source" , " 3.0-migration" ))
790
787
)
791
788
792
789
lazy val `tasty-core` = project.in(file(" tasty" )).asTastyCore(NonBootstrapped )
You can’t perform that action at this time.
0 commit comments