Skip to content

Commit 0d906c7

Browse files
committed
Remove non implemented setting -Yshow-raw-tree.
As well as the parameter in the `Settings` of staging, which were affecting the value of that setting (to no effect).
1 parent 85e52df commit 0d906c7

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ class ScalaSettings extends Settings.SettingGroup with CommonScalaSettings {
178178
val YprintDebug: Setting[Boolean] = BooleanSetting("-Yprint-debug", "When printing trees, print some extra information useful for debugging.")
179179
val YprintDebugOwners: Setting[Boolean] = BooleanSetting("-Yprint-debug-owners", "When printing trees, print owners of definitions.")
180180
val YshowPrintErrors: Setting[Boolean] = BooleanSetting("-Yshow-print-errors", "Don't suppress exceptions thrown during tree printing.")
181-
val YshowRawQuoteTrees: Setting[Boolean] = BooleanSetting("-Yshow-raw-tree", "Don't remove quote artifacts.")
182181
val YtestPickler: Setting[Boolean] = BooleanSetting("-Ytest-pickler", "Self-test for pickling functionality; should be used with -Ystop-after:pickler.")
183182
val YparallelPickler: Setting[Boolean] = BooleanSetting("-Yparallel-pickler", "Run part of the pickling phase in parallel, disable because it breaks some tests.")
184183
val YcheckReentrant: Setting[Boolean] = BooleanSetting("-Ycheck-reentrant", "Check that compiled program does not contain vars that can be accessed from a global root.")

staging/src/scala/quoted/staging/QuoteDriver.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ private class QuoteDriver(appClassloader: ClassLoader) extends Driver:
6060
ictx
6161

6262
private def setToolboxSettings(ctx: FreshContext, settings: Toolbox.Settings): ctx.type =
63-
ctx.setSetting(ctx.settings.YshowRawQuoteTrees, settings.showRawTree)
6463
// An error in the generated code is a bug in the compiler
6564
// Setting the throwing reporter however will report any exception
6665
ctx.setReporter(new ThrowingReporter(ctx.reporter))

staging/src/scala/quoted/staging/Toolbox.scala

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,23 +44,21 @@ object Toolbox:
4444
end new
4545

4646
/** Setting of the Toolbox instance. */
47-
case class Settings private (outDir: Option[String], showRawTree: Boolean, compilerArgs: List[String])
47+
case class Settings private (outDir: Option[String], compilerArgs: List[String])
4848

4949
object Settings:
5050

5151
implicit def default: Settings = make()
5252

5353
/** Make toolbox settings
5454
* @param outDir Output directory for the compiled quote. If set to None the output will be in memory
55-
* @param showRawTree Do not remove quote tree artifacts
5655
* @param compilerArgs Compiler arguments. Use only if you know what you are doing.
5756
*/
5857
def make( // TODO avoid using default parameters (for binary compat)
59-
showRawTree: Boolean = false,
6058
outDir: Option[String] = None,
6159
compilerArgs: List[String] = Nil
6260
): Settings =
63-
new Settings(outDir, showRawTree, compilerArgs)
61+
new Settings(outDir, compilerArgs)
6462

6563
end Settings
6664

0 commit comments

Comments
 (0)