File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
compiler/src/dotty/tools/dotc/cc Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -77,15 +77,10 @@ object CapturingType:
77
77
None
78
78
79
79
/** Check whether a type is uncachable when computing `baseType`.
80
- * - Avoid caching all the types during the setup phase, since at that point
81
- * the capture set variables are not fully installed yet.
82
- * - Avoid caching capturing types when IgnoreCaptures mode is set, since the
83
- * capture sets may be thrown away in the computed base type.
84
- */
80
+ * We avoid caching capturing types when IgnoreCaptures mode is set, since the
81
+ */
85
82
def isUncachable (tp : Type )(using Context ): Boolean =
86
- ctx.phase == Phases .checkCapturesPhase
87
- && (Setup .isDuringSetup
88
- || ctx.mode.is(Mode .IgnoreCaptures ) && decomposeCapturingType(tp).isDefined)
83
+ ctx.mode.is(Mode .IgnoreCaptures ) && decomposeCapturingType(tp).isDefined
89
84
90
85
end CapturingType
91
86
You can’t perform that action at this time.
0 commit comments