Skip to content

Commit

Permalink
Fix TastyBootstrapTests by adding sharable annotation to regex
Browse files Browse the repository at this point in the history
  • Loading branch information
tanishiking committed Sep 22, 2023
1 parent 499c347 commit 71a5cd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/src/dotty/tools/dotc/semanticdb/DiagnosticOps.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import dotty.tools.dotc.reporting.Diagnostic
import dotty.tools.dotc.{semanticdb => s}
import dotty.tools.dotc.interfaces.Diagnostic.{ERROR, INFO, WARNING}
import dotty.tools.dotc.core.Contexts.Context
import scala.annotation.internal.sharable

object DiagnosticOps:
private val asciiColorCodes = "\u001B\\[[;\\d]*m".r
@sharable private val asciiColorCodes = "\u001B\\[[;\\d]*m".r
extension (d: Diagnostic)
def toSemanticDiagnostic: s.Diagnostic =
val severity = d.level match
Expand Down

0 comments on commit 71a5cd0

Please sign in to comment.