Skip to content
This repository was archived by the owner on Jun 23, 2020. It is now read-only.

Commit a36b901

Browse files
committed
Use reporter.warning instead of deprecated unit.warning
1 parent 23a4e6a commit a36b901

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/src/main/scala/scala/tools/selectivecps/SelectiveANFTransform.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ abstract class SelectiveANFTransform extends PluginComponent with Transform with
395395
debuglog("cps type conversion (expected: " + cpsR.get + "): " + expr)
396396

397397
if (!hasPlusMarker(expr.tpe))
398-
unit.warning(tree.pos, "expression " + tree + " is cps-transformed unexpectedly")
398+
reporter.warning(tree.pos, "expression " + tree + " is cps-transformed unexpectedly")
399399

400400
try {
401401
val Some((a, b)) = cpsR
@@ -446,7 +446,7 @@ abstract class SelectiveANFTransform extends PluginComponent with Transform with
446446
// all is well
447447

448448
if (hasPlusMarker(expr.tpe)) {
449-
unit.warning(tree.pos, "expression " + expr + " of type " + expr.tpe + " is not expected to have a cps type")
449+
reporter.warning(tree.pos, "expression " + expr + " of type " + expr.tpe + " is not expected to have a cps type")
450450
expr modifyType removeAllCPSAnnotations
451451
}
452452

0 commit comments

Comments
 (0)