Skip to content

Commit 87102a0

Browse files
Merge pull request #11002 from dotty-staging/rename-runtime-Tuple
Rename scala.runtime.{Tuple => Tuples}
2 parents cb153a0 + aaa6ec1 commit 87102a0

File tree

18 files changed

+872
-69
lines changed

18 files changed

+872
-69
lines changed

bench-run/src/main/scala/dotty/tools/benchmarks/tuples/Apply.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Apply {
2121

2222
@Benchmark
2323
def tupleApply(): Any = {
24-
runtime.Tuple.apply(tuple, index)
24+
runtime.Tuples.apply(tuple, index)
2525
}
2626

2727
@Benchmark

bench-run/src/main/scala/dotty/tools/benchmarks/tuples/Concat.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ class Concat {
2727

2828
@Benchmark
2929
def tupleConcat(): Tuple = {
30-
runtime.Tuple.concat(tuple1, tuple2)
30+
runtime.Tuples.concat(tuple1, tuple2)
3131
}
3232
}

bench-run/src/main/scala/dotty/tools/benchmarks/tuples/Cons.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Cons {
2323

2424
@Benchmark
2525
def tupleCons(): Tuple = {
26-
runtime.Tuple.cons("elem", tuple)
26+
runtime.Tuples.cons("elem", tuple)
2727
}
2828

2929
@Benchmark

bench-run/src/main/scala/dotty/tools/benchmarks/tuples/Conversions.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,27 +23,27 @@ class Conversions {
2323

2424
@Benchmark
2525
def tupleToArray(): Array[Object] = {
26-
runtime.Tuple.toArray(tuple)
26+
runtime.Tuples.toArray(tuple)
2727
}
2828

2929
@Benchmark
3030
def tupleToIArray(): IArray[Object] = {
31-
runtime.Tuple.toIArray(tuple)
31+
runtime.Tuples.toIArray(tuple)
3232
}
3333

3434
@Benchmark
3535
def tupleFromArray(): Tuple = {
36-
runtime.Tuple.fromArray(array)
36+
runtime.Tuples.fromArray(array)
3737
}
3838

3939
@Benchmark
4040
def tupleFromIArray(): Tuple = {
41-
runtime.Tuple.fromIArray(iarray)
41+
runtime.Tuples.fromIArray(iarray)
4242
}
4343

4444
@Benchmark
4545
def productToArray(): Array[Object] = {
46-
runtime.Tuple.productToArray(tuple.asInstanceOf[Product])
46+
runtime.Tuples.productToArray(tuple.asInstanceOf[Product])
4747
}
4848

4949
@Benchmark

bench-run/src/main/scala/dotty/tools/benchmarks/tuples/Map.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Map {
2929

3030
@Benchmark
3131
def tupleMap(): Tuple = {
32-
runtime.Tuple.map[Id](tuple, [T] => (x:T) => x.asInstanceOf[String].updated(0, 'a').asInstanceOf[T])
32+
runtime.Tuples.map[Id](tuple, [T] => (x:T) => x.asInstanceOf[String].updated(0, 'a').asInstanceOf[T])
3333
}
3434

3535
@Benchmark

bench-run/src/main/scala/dotty/tools/benchmarks/tuples/Tail.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Tail {
2121

2222
@Benchmark
2323
def tupleTail(): Tuple = {
24-
runtime.Tuple.tail(tuple)
24+
runtime.Tuples.tail(tuple)
2525
}
2626

2727
@Benchmark

bench-run/src/main/scala/dotty/tools/benchmarks/tuples/Zip.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Zip {
2727

2828
@Benchmark
2929
def tupleZip(): Tuple = {
30-
runtime.Tuple.zip(tuple1, tuple2)
30+
runtime.Tuples.zip(tuple1, tuple2)
3131
}
3232

3333
@Benchmark

bench-run/src/main/scala/tuples/Drop.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Drop {
2323

2424
@Benchmark
2525
def tupleDrop(): Tuple = {
26-
runtime.Tuple.drop(tuple, half)
26+
runtime.Tuples.drop(tuple, half)
2727
}
2828

2929
@Benchmark

bench-run/src/main/scala/tuples/Split.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Split {
2323

2424
@Benchmark
2525
def tupleSplit(): (Tuple, Tuple) = {
26-
runtime.Tuple.splitAt(tuple, half)
26+
runtime.Tuples.splitAt(tuple, half)
2727
}
2828

2929
@Benchmark

bench-run/src/main/scala/tuples/Take.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Take {
2323

2424
@Benchmark
2525
def tupleTake(): Tuple = {
26-
runtime.Tuple.take(tuple, half)
26+
runtime.Tuples.take(tuple, half)
2727
}
2828

2929
@Benchmark

0 commit comments

Comments
 (0)