Skip to content

Commit 67cd3eb

Browse files
authored
Drop trace.force in CaptureSet (#21531)
2 parents f285199 + 2fbd42e commit 67cd3eb

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

compiler/src/dotty/tools/dotc/cc/CaptureSet.scala

+3-8
Original file line numberDiff line numberDiff line change
@@ -158,14 +158,9 @@ sealed abstract class CaptureSet extends Showable:
158158
* as frozen.
159159
*/
160160
def accountsFor(x: CaptureRef)(using Context): Boolean =
161-
if comparer.isInstanceOf[ExplainingTypeComparer] then // !!! DEBUG
162-
reporting.trace.force(i"$this accountsFor $x, ${x.captureSetOfInfo}?", show = true):
163-
elems.exists(_.subsumes(x))
164-
|| !x.isMaxCapability && x.captureSetOfInfo.subCaptures(this, frozen = true).isOK
165-
else
166-
reporting.trace(i"$this accountsFor $x, ${x.captureSetOfInfo}?", show = true):
167-
elems.exists(_.subsumes(x))
168-
|| !x.isMaxCapability && x.captureSetOfInfo.subCaptures(this, frozen = true).isOK
161+
reporting.trace(i"$this accountsFor $x, ${x.captureSetOfInfo}?", show = true):
162+
elems.exists(_.subsumes(x))
163+
|| !x.isMaxCapability && x.captureSetOfInfo.subCaptures(this, frozen = true).isOK
169164

170165
/** A more optimistic version of accountsFor, which does not take variable supersets
171166
* of the `x` reference into account. A set might account for `x` if it accounts

0 commit comments

Comments
 (0)