Skip to content

Commit e7847aa

Browse files
Merge pull request #8335 from dotty-staging/rename-dynamictuple-to-runtime-tuple
Rename Dynamic tuple to scala.runtime.Tuple
2 parents dd7b841 + b74d6ac commit e7847aa

File tree

15 files changed

+119
-105
lines changed

15 files changed

+119
-105
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
@@ -22,7 +22,7 @@ class Apply {
2222

2323
@Benchmark
2424
def tupleApply(): Any = {
25-
DynamicTuple.apply(tuple, index)
25+
runtime.Tuple.apply(tuple, index)
2626
}
2727

2828
@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
@@ -28,6 +28,6 @@ class Concat {
2828

2929
@Benchmark
3030
def tupleConcat(): Tuple = {
31-
DynamicTuple.concat(tuple1, tuple2)
31+
runtime.Tuple.concat(tuple1, tuple2)
3232
}
3333
}

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
@@ -24,7 +24,7 @@ class Cons {
2424

2525
@Benchmark
2626
def tupleCons(): Tuple = {
27-
DynamicTuple.cons("elem", tuple)
27+
runtime.Tuple.cons("elem", tuple)
2828
}
2929

3030
@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
@@ -24,27 +24,27 @@ class Conversions {
2424

2525
@Benchmark
2626
def tupleToArray(): Array[Object] = {
27-
DynamicTuple.toArray(tuple)
27+
runtime.Tuple.toArray(tuple)
2828
}
2929

3030
@Benchmark
3131
def tupleToIArray(): IArray[Object] = {
32-
DynamicTuple.toIArray(tuple)
32+
runtime.Tuple.toIArray(tuple)
3333
}
3434

3535
@Benchmark
3636
def tupleFromArray(): Tuple = {
37-
DynamicTuple.fromArray(array)
37+
runtime.Tuple.fromArray(array)
3838
}
3939

4040
@Benchmark
4141
def tupleFromIArray(): Tuple = {
42-
DynamicTuple.fromIArray(iarray)
42+
runtime.Tuple.fromIArray(iarray)
4343
}
4444

4545
@Benchmark
4646
def productToArray(): Array[Object] = {
47-
DynamicTuple.productToArray(tuple.asInstanceOf[Product])
47+
runtime.Tuple.productToArray(tuple.asInstanceOf[Product])
4848
}
4949

5050
@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
@@ -30,7 +30,7 @@ class Map {
3030

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

3636
@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
@@ -22,7 +22,7 @@ class Tail {
2222

2323
@Benchmark
2424
def tupleTail(): Tuple = {
25-
DynamicTuple.tail(tuple)
25+
runtime.Tuple.tail(tuple)
2626
}
2727

2828
@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
@@ -28,7 +28,7 @@ class Zip {
2828

2929
@Benchmark
3030
def tupleZip(): Tuple = {
31-
DynamicTuple.zip(tuple1, tuple2)
31+
runtime.Tuple.zip(tuple1, tuple2)
3232
}
3333

3434
@Benchmark

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

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

2525
@Benchmark
2626
def tupleDrop(): Tuple = {
27-
DynamicTuple.drop(tuple, half)
27+
runtime.Tuple.drop(tuple, half)
2828
}
2929

3030
@Benchmark

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

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

2525
@Benchmark
2626
def tupleSplit(): (Tuple, Tuple) = {
27-
DynamicTuple.splitAt(tuple, half)
27+
runtime.Tuple.splitAt(tuple, half)
2828
}
2929

3030
@Benchmark

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

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

2525
@Benchmark
2626
def tupleTake(): Tuple = {
27-
DynamicTuple.take(tuple, half)
27+
runtime.Tuple.take(tuple, half)
2828
}
2929

3030
@Benchmark

0 commit comments

Comments
 (0)