File tree 2 files changed +3
-3
lines changed
compiler/src/dotty/tools/dotc
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1020,7 +1020,7 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
1020
1020
case info2 : TypeBounds =>
1021
1021
compareLower(info2, tyconIsTypeRef = true )
1022
1022
case info2 : ClassInfo =>
1023
- tycon2.name.toString. startsWith(" Tuple" ) &&
1023
+ tycon2.name.startsWith(" Tuple" ) &&
1024
1024
defn.isTupleType(tp2) && recur(tp1, tp2.toNestedPairs) ||
1025
1025
tryBaseType(info2.cls)
1026
1026
case _ =>
Original file line number Diff line number Diff line change @@ -39,13 +39,13 @@ class Instrumentation extends MiniPhase { thisPhase =>
39
39
ctx
40
40
41
41
private def record (category : String , tree : Tree )(using Context ): Tree = {
42
- val key = Literal (Constant (s " $category${tree.sourcePos.show}" ))
42
+ val key = Literal (Constant (s " $category@ ${tree.sourcePos.show}" ))
43
43
ref(defn.Stats_doRecord ).appliedTo(key, Literal (Constant (1 )))
44
44
}
45
45
46
46
override def transformApply (tree : Apply )(using Context ): Tree = tree.fun match {
47
47
case Select (nu : New , _) =>
48
- cpy.Block (tree)(record(i " alloc/ ${nu.tpe}@ " , tree) :: Nil , tree)
48
+ cpy.Block (tree)(record(i " alloc/ ${nu.tpe}" , tree) :: Nil , tree)
49
49
case Select (_, name) if namesToRecord.contains(name) =>
50
50
cpy.Block (tree)(record(i " alloc/ $name" , tree) :: Nil , tree)
51
51
case _ =>
You can’t perform that action at this time.
0 commit comments