Skip to content

Commit a6f6913

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 e855eaa commit a6f6913

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
@@ -163,7 +163,6 @@ class ScalaSettings extends Settings.SettingGroup with CommonScalaSettings {
163163
val Ydumpclasses: Setting[String] = StringSetting("-Ydump-classes", "dir", "Dump the generated bytecode to .class files (useful for reflective compilation that utilizes in-memory classloaders).", "")
164164
val YstopAfter: Setting[List[String]] = PhasesSetting("-Ystop-after", "Stop after") withAbbreviation ("-stop") // backward compat
165165
val YstopBefore: Setting[List[String]] = PhasesSetting("-Ystop-before", "Stop before") // stop before erasure as long as we have not debugged it fully
166-
val YtraceContextCreation: Setting[Boolean] = BooleanSetting("-Ytrace-context-creation", "Store stack trace of context creations.")
167166
val YshowSuppressedErrors: Setting[Boolean] = BooleanSetting("-Yshow-suppressed-errors", "Also show follow-on errors and warnings that are normally suppressed.")
168167
val YdetailedStats: Setting[Boolean] = BooleanSetting("-Ydetailed-stats", "Show detailed internal compiler stats (needs Stats.enabled to be set to true).")
169168
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)