Skip to content

Commit df85c6e

Browse files
committed
Remove no-op -Yno-experimental
1 parent 32f5a17 commit df85c6e

File tree

174 files changed

+172
-177
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

174 files changed

+172
-177
lines changed

compiler/src/dotty/tools/dotc/config/ScalaSettings.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,6 @@ private sealed trait YSettings:
406406
val YretainTrees: Setting[Boolean] = BooleanSetting(ForkSetting, "Yretain-trees", "Retain trees for top-level classes, accessible from ClassSymbol#tree")
407407
val YshowTreeIds: Setting[Boolean] = BooleanSetting(ForkSetting, "Yshow-tree-ids", "Uniquely tag all tree nodes in debugging output.")
408408
val YfromTastyIgnoreList: Setting[List[String]] = MultiStringSetting(ForkSetting, "Yfrom-tasty-ignore-list", "file", "List of `tasty` files in jar files that will not be loaded when using -from-tasty.")
409-
val YnoExperimental: Setting[Boolean] = BooleanSetting(ForkSetting, "Yno-experimental", "Disable experimental language features by default in NIGHTLY/SNAPSHOT versions of the compiler (deprecated, no-op).")
410409
val YlegacyLazyVals: Setting[Boolean] = BooleanSetting(ForkSetting, "Ylegacy-lazy-vals", "Use legacy (pre 3.3.0) implementation of lazy vals.")
411410
val YcompileScala2Library: Setting[Boolean] = BooleanSetting(ForkSetting, "Ycompile-scala2-library", "Used when compiling the Scala 2 standard library.")
412411
val YoutputOnlyTasty: Setting[Boolean] = BooleanSetting(ForkSetting, "Youtput-only-tasty", "Used to only generate the TASTy file without the classfiles")

project/Build.scala

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,7 +1083,6 @@ object Build {
10831083
Compile / doc / scalacOptions += "-Ydocument-synthetic-types",
10841084
scalacOptions += "-Ycompile-scala2-library",
10851085
scalacOptions += "-Yscala2Unpickler:never",
1086-
scalacOptions += "-Yno-experimental",
10871086
scalacOptions -= "-Xfatal-warnings",
10881087
Compile / compile / logLevel.withRank(KeyRanks.Invisible) := Level.Error,
10891088
ivyConfigurations += SourceDeps.hide,
@@ -2173,9 +2172,6 @@ object Build {
21732172
settings(
21742173
versionScheme := Some("semver-spec"),
21752174
libraryDependencies += "org.scala-lang" % "scala-library" % stdlibVersion,
2176-
// Make sure we do not refer to experimental features outside an experimental scope.
2177-
// In other words, disable NIGHTLY/SNAPSHOT experimental scope.
2178-
scalacOptions += "-Yno-experimental",
21792175
).
21802176
settings(dottyLibrarySettings)
21812177
if (mode == Bootstrapped) {

tests/init-global/pos/global-region1.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//> using options -experimental -Yno-experimental
1+
//> using options -experimental
22

33
import scala.annotation.init.region
44

tests/init-global/warn/i18628_3.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//> using options -experimental -Yno-experimental
1+
//> using options -experimental
22

33
import scala.annotation.init.widen
44

tests/neg-macros/i18677-a/Macro_1.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//> using options -experimental -Yno-experimental
1+
//> using options -experimental
22

33
import annotation.MacroAnnotation
44
import quoted.*
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//> using options -experimental -Yno-experimental
1+
//> using options -experimental
22

33
@extendFoo
44
class AFoo // error

tests/neg-macros/i18677-b/Macro_1.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//> using options -experimental -Yno-experimental
1+
//> using options -experimental
22

33
import annotation.MacroAnnotation
44
import quoted.*
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//> using options -experimental -Yno-experimental
1+
//> using options -experimental
22

33
@extendFoo
44
class AFoo // error

tests/neg-macros/i19676/Macro_1.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//> using options -experimental -Yno-experimental
1+
//> using options -experimental
22

33
import scala.annotation.MacroAnnotation
44
import scala.quoted.*

tests/neg-macros/i19676/Test_2.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//> using options -experimental -Yno-experimental
1+
//> using options -experimental
22

33
@buggy // error
44
case class Foo()

0 commit comments

Comments
 (0)