File tree 2 files changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/core
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ object Contexts {
95
95
inline def atPhaseNoEarlier [T ](limit : Phase )(inline op : Context ?=> T )(using Context ): T =
96
96
op(using if ! limit.exists || limit <= ctx.phase then ctx else ctx.withPhase(limit))
97
97
98
- inline def inMode [T ](mode : Mode )(inline op : Context ?=> T )(using ctx : Context ): T =
98
+ inline private def inMode [T ](mode : Mode )(inline op : Context ?=> T )(using ctx : Context ): T =
99
99
op(using if mode != ctx.mode then ctx.fresh.setMode(mode) else ctx)
100
100
101
101
inline def withMode [T ](mode : Mode )(inline op : Context ?=> T )(using ctx : Context ): T =
Original file line number Diff line number Diff line change @@ -5037,7 +5037,7 @@ object Types extends TypeUtils {
5037
5037
record(" MatchType.reduce computed" )
5038
5038
if (myReduced != null ) record(" MatchType.reduce cache miss" )
5039
5039
myReduced =
5040
- trace(i " reduce match type $this $hashCode" , matchTypes, show = true )(inMode (Mode .Type ) {
5040
+ trace(i " reduce match type $this $hashCode" , matchTypes, show = true )(withMode (Mode .Type ) {
5041
5041
def matchCases (cmp : TrackingTypeComparer ): Type =
5042
5042
val saved = ctx.typerState.snapshot()
5043
5043
try cmp.matchCases(scrutinee.normalized, cases.map(MatchTypeCaseSpec .analyze(_)))
You can’t perform that action at this time.
0 commit comments