Skip to content

Commit 41add3b

Browse files
committed
Remove creationTrace field from Context
1 parent 657385b commit 41add3b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,9 @@ object Contexts {
263263
final def withPhaseNoEarlier(phase: Phase) =
264264
if (phase.exists && ctx.phase.id < phase.id) withPhase(phase) else ctx
265265

266+
// `creationTrace`-related code. To enable, uncomment the code below and the
267+
// call to `setCreationTrace()` in this file.
268+
/*
266269
/** If -Ydebug is on, the top of the stack trace where this context
267270
* was created, otherwise `null`.
268271
*/
@@ -281,6 +284,7 @@ object Contexts {
281284
}
282285
println("=== end context creation trace ===")
283286
}
287+
*/
284288

285289
/** The current reporter */
286290
def reporter: Reporter = typerState.reporter
@@ -414,7 +418,8 @@ object Contexts {
414418
this.implicitsCache = null
415419
this.phasedCtx = this
416420
this.phasedCtxs = null
417-
setCreationTrace()
421+
// See comment related to `creationTrace` in this file
422+
// setCreationTrace()
418423
this
419424
}
420425

0 commit comments

Comments
 (0)