@@ -1083,7 +1083,7 @@ object Semantic:
1083
1083
eval(body, thisV, klass)
1084
1084
}
1085
1085
given Trace = Trace .empty.add(body)
1086
- res.promote(" The function return value is not fully initialized . Found = " + res.show + " . " )
1086
+ res.promote(" The function return value is not hot . Found = " + res.show + " . " )
1087
1087
}
1088
1088
if errors.nonEmpty then
1089
1089
reporter.report(UnsafePromotion (msg, trace.toVector, errors.head))
@@ -1127,12 +1127,12 @@ object Semantic:
1127
1127
withTrace(Trace .empty) {
1128
1128
val args = member.info.paramInfoss.flatten.map(_ => ArgInfo (Hot , Trace .empty))
1129
1129
val res = warm.call(member, args, receiver = NoType , superType = NoType )
1130
- res.promote(" Cannot prove that the return value of " + member.show + " is fully initialized . Found = " + res.show + " . " )
1130
+ res.promote(" Cannot prove that the return value of " + member.show + " is hot . Found = " + res.show + " . " )
1131
1131
}
1132
1132
else
1133
1133
withTrace(Trace .empty) {
1134
1134
val res = warm.select(member)
1135
- res.promote(" Cannot prove that the field " + member.show + " is fully initialized . Found = " + res.show + " . " )
1135
+ res.promote(" Cannot prove that the field " + member.show + " is hot . Found = " + res.show + " . " )
1136
1136
}
1137
1137
end for
1138
1138
end for
@@ -1233,7 +1233,7 @@ object Semantic:
1233
1233
/** Utility definition used for better error-reporting of argument errors */
1234
1234
case class ArgInfo (value : Value , trace : Trace ):
1235
1235
def promote : Contextual [Unit ] = withTrace(trace) {
1236
- value.promote(" Cannot prove the method argument is fully initialized . Only fully initialized values are safe to leak.\n Found = " + value.show + " . " )
1236
+ value.promote(" Cannot prove the method argument is hot . Only hot values are safe to leak.\n Found = " + value.show + " . " )
1237
1237
}
1238
1238
1239
1239
/** Evaluate an expression with the given value for `this` in a given class `klass`
@@ -1370,12 +1370,12 @@ object Semantic:
1370
1370
eval(qual, thisV, klass)
1371
1371
val res = eval(rhs, thisV, klass)
1372
1372
extendTrace(expr) {
1373
- res.ensureHot(" The RHS of reassignment must be fully initialized . Found = " + res.show + " . " )
1373
+ res.ensureHot(" The RHS of reassignment must be hot . Found = " + res.show + " . " )
1374
1374
}
1375
1375
case id : Ident =>
1376
1376
val res = eval(rhs, thisV, klass)
1377
1377
extendTrace(expr) {
1378
- res.ensureHot(" The RHS of reassignment must be fully initialized . Found = " + res.show + " . " )
1378
+ res.ensureHot(" The RHS of reassignment must be hot . Found = " + res.show + " . " )
1379
1379
}
1380
1380
1381
1381
case closureDef(ddef) =>
@@ -1398,14 +1398,14 @@ object Semantic:
1398
1398
case Match (selector, cases) =>
1399
1399
val res = eval(selector, thisV, klass)
1400
1400
extendTrace(selector) {
1401
- res.ensureHot(" The value to be matched needs to be fully initialized . Found = " + res.show + " . " )
1401
+ res.ensureHot(" The value to be matched needs to be hot . Found = " + res.show + " . " )
1402
1402
}
1403
1403
eval(cases.map(_.body), thisV, klass).join
1404
1404
1405
1405
case Return (expr, from) =>
1406
1406
val res = eval(expr, thisV, klass)
1407
1407
extendTrace(expr) {
1408
- res.ensureHot(" return expression must be fully initialized . Found = " + res.show + " . " )
1408
+ res.ensureHot(" return expression must be hot . Found = " + res.show + " . " )
1409
1409
}
1410
1410
1411
1411
case WhileDo (cond, body) =>
0 commit comments