@@ -569,7 +569,7 @@ object Objects:
569
569
def call (value : Value , meth : Symbol , args : List [ArgInfo ], receiver : Type , superType : Type , needResolve : Boolean = true ): Contextual [Value ] = log(" call " + meth.show + " , args = " + args.map(_.value.show), printer, (_ : Value ).show) {
570
570
value match
571
571
case Cold =>
572
- report.warning(" Using cold alias" , Trace .position)
572
+ report.warning(" Using cold alias. Calling trace: \n " + Trace .show , Trace .position)
573
573
Bottom
574
574
575
575
case Bottom =>
@@ -769,7 +769,7 @@ object Objects:
769
769
report.warning(" [Internal error] unexpected tree in assignment, fun = " + fun.code.show + Trace .show, Trace .position)
770
770
771
771
case Cold =>
772
- report.warning(" Assigning to cold aliases is forbidden" , Trace .position)
772
+ report.warning(" Assigning to cold aliases is forbidden. Calling trace: \n " + Trace .show , Trace .position)
773
773
774
774
case Bottom =>
775
775
@@ -784,7 +784,7 @@ object Objects:
784
784
else
785
785
Heap .write(addr, rhs)
786
786
else
787
- report.warning(" Mutating a field before its initialization: " + field.show, Trace .position)
787
+ report.warning(" Mutating a field before its initialization: " + field.show + " . Calling trace: \n " + Trace .show , Trace .position)
788
788
end match
789
789
790
790
Bottom
@@ -915,7 +915,7 @@ object Objects:
915
915
Heap .write(addr, value)
916
916
917
917
case _ =>
918
- report.warning(" Assigning to variables in outer scope" , Trace .position)
918
+ report.warning(" Assigning to variables in outer scope. Calling trace: \n " + Trace .show , Trace .position)
919
919
920
920
Bottom
921
921
}
@@ -1002,7 +1002,7 @@ object Objects:
1002
1002
case Apply (ref, arg :: Nil ) if ref.symbol == defn.InitRegionMethod =>
1003
1003
val regions2 = Regions .extend(expr.sourcePos)
1004
1004
if Regions .exists(expr.sourcePos) then
1005
- report.warning(" Cyclic region detected. Trace: " + Trace .show, expr)
1005
+ report.warning(" Cyclic region detected. Trace:\n " + Trace .show, expr)
1006
1006
Bottom
1007
1007
else
1008
1008
given Regions .Data = regions2
0 commit comments