Skip to content

Commit f8b9f3f

Browse files
committed
Only run staging when needed
1 parent 987bfab commit f8b9f3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class Staging extends MacroTransform {
7272
}
7373

7474
override def run(implicit ctx: Context): Unit =
75-
/*if (ctx.compilationUnit.needsStaging)*/ super.run(freshStagingContext)
75+
if (ctx.compilationUnit.needsStaging) super.run(freshStagingContext)
7676

7777
protected def newTransformer(implicit ctx: Context): Transformer = new Transformer {
7878
override def transform(tree: tpd.Tree)(implicit ctx: Context): tpd.Tree =

0 commit comments

Comments
 (0)