Skip to content

Commit 1a975a9

Browse files
committed
Fix -migration warning.
1 parent ef391dd commit 1a975a9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

compilation/src/main/dotc/scala/tools/benchmark/BenchmarkDriver.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ trait BenchmarkDriver extends BaseBenchmarkDriver {
1212
ctx.setSetting(ctx.settings.classpath,
1313
depsClasspath.mkString(File.pathSeparator))
1414
}
15+
ctx.setSetting(ctx.settings.migration, true)
1516
ctx.setSetting(ctx.settings.d, tempDir.getAbsolutePath)
1617
ctx.setSetting(ctx.settings.language, List("Scala2"))
1718
val compiler = new dotty.tools.dotc.Compiler

corpus/vector/fb04376/Vector.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ override def companion: GenericCompanion[Vector] = Vector
8282

8383
override def lengthCompare(len: Int): Int = length - len
8484

85-
private[collection] final def initIterator[B >: A](s: VectorIterator[B]) {
85+
private[collection] final def initIterator[B >: A](s: VectorIterator[B]): Unit = {
8686
s.initFrom(this)
8787
if (dirty) s.stabilize(focus)
8888
if (s.depth > 1) s.gotoPos(startIndex, startIndex ^ focus)

0 commit comments

Comments
 (0)