Skip to content

Commit 0f43132

Browse files
authored
Merge pull request #4624 from dotty-staging/opt/no-atPhase
ElimErasedValueType: remove unnecessary phase-travelling
2 parents efb8115 + c2127df commit 0f43132

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

compiler/src/dotty/tools/dotc/transform/ElimErasedValueType.scala

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,10 @@ class ElimErasedValueType extends MiniPhase with InfoTransformer {
3333
case origClass: ClassSymbol if isDerivedValueClass(origClass) =>
3434
val cinfo = tp.asInstanceOf[ClassInfo]
3535
val decls1 = cinfo.decls.cloneScope
36-
ctx.atPhase(this.next) { implicit ctx =>
37-
// Remove synthetic cast methods introduced by ExtensionMethods,
38-
// they are no longer needed after this phase.
39-
decls1.unlink(cinfo.decl(nme.U2EVT).symbol)
40-
decls1.unlink(cinfo.decl(nme.EVT2U).symbol)
41-
}
36+
// Remove synthetic cast methods introduced by ExtensionMethods,
37+
// they are no longer needed after this phase.
38+
decls1.unlink(cinfo.decl(nme.U2EVT).symbol)
39+
decls1.unlink(cinfo.decl(nme.EVT2U).symbol)
4240
cinfo.derivedClassInfo(decls = decls1)
4341
case _ =>
4442
tp

0 commit comments

Comments
 (0)