Skip to content

Commit c359617

Browse files
committed
Remove the -Xno-value-classes setting.
This setting is not tested, and forks the binary ecosystem.
1 parent f334e3f commit c359617

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ class ScalaSettings extends Settings.SettingGroup with CommonScalaSettings {
118118
val XprintSuspension: Setting[Boolean] = BooleanSetting("-Xprint-suspension", "Show when code is suspended until macros are compiled.")
119119
val Xprompt: Setting[Boolean] = BooleanSetting("-Xprompt", "Display a prompt after each error (debugging option).")
120120
val XshowPhases: Setting[Boolean] = BooleanSetting("-Xshow-phases", "Print all compiler phases.")
121-
val XnoValueClasses: Setting[Boolean] = BooleanSetting("-Xno-value-classes", "Do not use value classes. Helps debugging.")
122121
val XreplLineWidth: Setting[Int] = IntSetting("-Xrepl-line-width", "Maximal number of columns per line for REPL output.", 390)
123122
val XreplDisableDisplay: Setting[Boolean] = BooleanSetting("-Xrepl-disable-display", "Do not display definitions in REPL.")
124123
val XfatalWarnings: Setting[Boolean] = BooleanSetting("-Xfatal-warnings", "Fail the compilation if there are any warnings.")

compiler/src/dotty/tools/dotc/transform/ValueClasses.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ object ValueClasses {
1515

1616
def isDerivedValueClass(sym: Symbol)(using Context): Boolean = {
1717
val d = sym.denot
18-
!ctx.settings.XnoValueClasses.value &&
1918
!d.isRefinementClass &&
2019
d.isValueClass &&
2120
(d.initial.symbol ne defn.AnyValClass) && // Compare the initial symbol because AnyVal does not exist after erasure

0 commit comments

Comments
 (0)