Skip to content

Commit 8bfcdaa

Browse files
authored
Merge pull request #4746 from dotty-staging/sync-toolbox
Synchronise quoted.Toolbox
2 parents cf7b589 + fded6f1 commit 8bfcdaa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/quoted/Toolbox.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ object Toolbox {
1919
case expr: TastyTreeExpr[Tree] @unchecked =>
2020
throw new Exception("Cannot call `Expr.run` on an `Expr` that comes from an inline macro argument.")
2121
case _ =>
22-
driver.run(expr, settings)
22+
synchronized(driver.run(expr, settings))
2323
}
2424

25-
def show[T](expr: Expr[T]): String = driver.show(expr, settings)
25+
def show[T](expr: Expr[T]): String = synchronized(driver.show(expr, settings))
2626

2727
}
2828
}

0 commit comments

Comments
 (0)