Skip to content

Commit 71a5cd0

Browse files
committed
Fix TastyBootstrapTests by adding sharable annotation to regex
1 parent 499c347 commit 71a5cd0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/src/dotty/tools/dotc/semanticdb/DiagnosticOps.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ import dotty.tools.dotc.reporting.Diagnostic
44
import dotty.tools.dotc.{semanticdb => s}
55
import dotty.tools.dotc.interfaces.Diagnostic.{ERROR, INFO, WARNING}
66
import dotty.tools.dotc.core.Contexts.Context
7+
import scala.annotation.internal.sharable
78

89
object DiagnosticOps:
9-
private val asciiColorCodes = "\u001B\\[[;\\d]*m".r
10+
@sharable private val asciiColorCodes = "\u001B\\[[;\\d]*m".r
1011
extension (d: Diagnostic)
1112
def toSemanticDiagnostic: s.Diagnostic =
1213
val severity = d.level match

0 commit comments

Comments
 (0)