File tree Expand file tree Collapse file tree 4 files changed +1
-8
lines changed
compiler/src/dotty/tools/dotc
library/src/scalaShadowing Expand file tree Collapse file tree 4 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -75,8 +75,6 @@ class Driver {
7575 inContext(ictx) {
7676 if ! ctx.settings.YdropComments .value || ctx.mode.is(Mode .ReadComments ) then
7777 ictx.setProperty(ContextDoc , new ContextDocstrings )
78- if Feature .enabledBySetting(nme.Scala2Compat ) then
79- report.warning(" -language:Scala2Compat will go away; use -source 3.0-migration instead" )
8078 val fileNames = CompilerCommand .checkUsage(summary, sourcesRequired)
8179 fromTastySetup(fileNames, ctx)
8280 }
Original file line number Diff line number Diff line change @@ -82,8 +82,7 @@ object Feature:
8282 case Some (v) => v
8383 case none => sourceVersionSetting
8484
85- def migrateTo3 (using Context ): Boolean =
86- sourceVersion == `3.0-migration` || enabledBySetting(nme.Scala2Compat )
85+ def migrateTo3 (using Context ): Boolean = sourceVersion == `3.0-migration`
8786
8887 /** If current source migrates to `version`, issue given warning message
8988 * and return `true`, otherwise return `false`.
Original file line number Diff line number Diff line change @@ -386,7 +386,6 @@ object StdNames {
386386 val Ref : N = " Ref"
387387 val RootPackage : N = " RootPackage"
388388 val RootClass : N = " RootClass"
389- val Scala2Compat : N = " Scala2Compat"
390389 val Select : N = " Select"
391390 val Shape : N = " Shape"
392391 val StringContext : N = " StringContext"
Original file line number Diff line number Diff line change @@ -225,9 +225,6 @@ object language {
225225 object genericNumberLiterals
226226 }
227227
228- /** Where imported, a backwards compatibility mode for Scala2 is enabled */
229- object Scala2Compat
230-
231228 /** Where imported, auto-tupling is disabled */
232229 object noAutoTupling
233230
You can’t perform that action at this time.
0 commit comments