Skip to content

Commit a0a4d5c

Browse files
committed
Remove the setting -Ytrace-context-creation.
It doesn't do anything on its own, because the code that takes it into account is commented out. Since we have to uncomment it to enable it, there is no point in also having a setting.
1 parent 704e551 commit a0a4d5c

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ class ScalaSettings extends Settings.SettingGroup with CommonScalaSettings {
166166
val Ydumpclasses: Setting[String] = StringSetting("-Ydump-classes", "dir", "Dump the generated bytecode to .class files (useful for reflective compilation that utilizes in-memory classloaders).", "")
167167
val YstopAfter: Setting[List[String]] = PhasesSetting("-Ystop-after", "Stop after") withAbbreviation ("-stop") // backward compat
168168
val YstopBefore: Setting[List[String]] = PhasesSetting("-Ystop-before", "Stop before") // stop before erasure as long as we have not debugged it fully
169-
val YtraceContextCreation: Setting[Boolean] = BooleanSetting("-Ytrace-context-creation", "Store stack trace of context creations.")
170169
val YshowSuppressedErrors: Setting[Boolean] = BooleanSetting("-Yshow-suppressed-errors", "Also show follow-on errors and warnings that are normally suppressed.")
171170
val YdetailedStats: Setting[Boolean] = BooleanSetting("-Ydetailed-stats", "Show detailed internal compiler stats (needs Stats.enabled to be set to true).")
172171
val YkindProjector: Setting[Boolean] = BooleanSetting("-Ykind-projector", "Allow `*` as wildcard to be compatible with kind projector.")

compiler/src/dotty/tools/dotc/core/Contexts.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,7 @@ object Contexts {
338338
private var creationTrace: Array[StackTraceElement] = _
339339
340340
private def setCreationTrace() =
341-
if (this.settings.YtraceContextCreation.value)
342-
creationTrace = (new Throwable).getStackTrace().take(20)
341+
creationTrace = (new Throwable).getStackTrace().take(20)
343342
344343
/** Print all enclosing context's creation stacktraces */
345344
def printCreationTraces() = {

0 commit comments

Comments
 (0)