Skip to content

Commit 9ec1f84

Browse files
committed
Unused imports emits actions always
1 parent 75a5fe7 commit 9ec1f84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/CheckUnused.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ object CheckUnused:
560560
type MessageInfo = (UnusedSymbol, SrcPos, String) // string is origin or empty
561561

562562
def warnings(using Context): Array[MessageInfo] =
563-
val actionable = ctx.settings.rewrite.value.nonEmpty
563+
val actionable: true = true //ctx.settings.rewrite.value.nonEmpty
564564
val warnings = ArrayBuilder.make[MessageInfo]
565565
def warnAt(pos: SrcPos)(msg: UnusedSymbol, origin: String = Diagnostic.OriginWarning.NoOrigin): Unit =
566566
warnings.addOne((msg, pos, origin))

0 commit comments

Comments
 (0)