Skip to content

Commit 4dc0b9b

Browse files
committed
Fixes
1 parent 68e1fea commit 4dc0b9b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

compiler/test/dotty/tools/compilerSupport.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ import dotc.core.Comments.{ContextDoc, ContextDocstrings}
2020
def inCompilerContext[T](classpath: String, separateRun: Boolean = true, scalaSources: String*)(op: Context ?=> T): T =
2121
val compiler = Compiler()
2222
val rootCtx = initCtx(classpath)
23-
val firstRun = compiler.newRun(rootCtx)
23+
val firstRun = compiler.newRun(using rootCtx)
2424
firstRun.compileFromStrings(scalaSources.toList)
2525
val opRun = if separateRun
26-
then compiler.newRun(rootCtx)
26+
then compiler.newRun(using rootCtx)
2727
else firstRun
2828
op(using opRun.runContext)
2929

compiler/test/dotty/tools/dotc/printing/SyntaxHighlightingTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class SyntaxHighlightingTests extends DottyTest {
1111

1212
private def test(source: String, expected: String): Unit = {
1313
val testCtx = ctx.fresh.setSetting(ctx.settings.color, "always")
14-
val highlighted = SyntaxHighlighting.highlight(source)(testCtx)
14+
val highlighted = SyntaxHighlighting.highlight(source)(using testCtx)
1515
.replace(NoColor, ">")
1616
.replace(CommentColor, "<C|")
1717
.replace(KeywordColor, "<K|")

doc-tool/test/dotty/tools/dottydoc/DottyDocTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ trait DottyDocTest extends MessageRendering {
115115
ctx.setSetting(ctx.settings.outputDir, AbstractFile.getDirectory(out))
116116
}
117117
val dotc = new Compiler
118-
val run = dotc.newRun(dotcCtx)
118+
val run = dotc.newRun(using dotcCtx)
119119
run.compileSources(sources)
120120
assert(!dotcCtx.reporter.hasErrors)
121121

0 commit comments

Comments
 (0)