Skip to content

Commit a7a8f7a

Browse files
committed
Unused imports emits actions always
1 parent c2d9e92 commit a7a8f7a

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
@@ -562,7 +562,7 @@ object CheckUnused:
562562
type MessageInfo = (UnusedSymbol, SrcPos, String) // string is origin or empty
563563

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

0 commit comments

Comments
 (0)