File tree 4 files changed +1
-8
lines changed
compiler/src/dotty/tools/dotc
library/src/scalaShadowing
4 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -75,8 +75,6 @@ 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 ) then
79
- report.warning(" -language:Scala2Compat will go away; use -source 3.0-migration instead" )
80
78
val fileNames = CompilerCommand .checkUsage(summary, sourcesRequired)
81
79
fromTastySetup(fileNames, ctx)
82
80
}
Original file line number Diff line number Diff line change @@ -82,8 +82,7 @@ object Feature:
82
82
case Some (v) => v
83
83
case none => sourceVersionSetting
84
84
85
- def migrateTo3 (using Context ): Boolean =
86
- sourceVersion == `3.0-migration` || enabledBySetting(nme.Scala2Compat )
85
+ def migrateTo3 (using Context ): Boolean = sourceVersion == `3.0-migration`
87
86
88
87
/** If current source migrates to `version`, issue given warning message
89
88
* and return `true`, otherwise return `false`.
Original file line number Diff line number Diff line change @@ -386,7 +386,6 @@ object StdNames {
386
386
val Ref : N = " Ref"
387
387
val RootPackage : N = " RootPackage"
388
388
val RootClass : N = " RootClass"
389
- val Scala2Compat : N = " Scala2Compat"
390
389
val Select : N = " Select"
391
390
val Shape : N = " Shape"
392
391
val StringContext : N = " StringContext"
Original file line number Diff line number Diff line change @@ -225,9 +225,6 @@ object language {
225
225
object genericNumberLiterals
226
226
}
227
227
228
- /** Where imported, a backwards compatibility mode for Scala2 is enabled */
229
- object Scala2Compat
230
-
231
228
/** Where imported, auto-tupling is disabled */
232
229
object noAutoTupling
233
230
You can’t perform that action at this time.
0 commit comments