Skip to content

Commit

Permalink
Remove Feature.globalOnlyImports (#19881)
Browse files Browse the repository at this point in the history
This is dead code. This logic is now handled by
`Features.handleGlobalLanguageImport`.
  • Loading branch information
odersky authored Mar 11, 2024
2 parents f1e3dff + 579493f commit de51ae3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions compiler/src/dotty/tools/dotc/config/Feature.scala
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ object Feature:
val captureChecking = experimental("captureChecking")
val into = experimental("into")

val globalOnlyImports: Set[TermName] = Set(pureFunctions, captureChecking)

/** Is `feature` enabled by by a command-line setting? The enabling setting is
*
* -language:<prefix>feature
Expand Down
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/parsing/Parsers.scala
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import scala.annotation.tailrec
import rewrites.Rewrites.{patch, overlapsPatch}
import reporting.*
import config.Feature
import config.Feature.{sourceVersion, migrateTo3, globalOnlyImports}
import config.Feature.{sourceVersion, migrateTo3}
import config.SourceVersion.*
import config.SourceVersion
import dotty.tools.dotc.config.MigrationVersion
Expand Down

0 comments on commit de51ae3

Please sign in to comment.