Skip to content

Commit 8c198cf

Browse files
committed
Unused imports emits actions always
1 parent 95e1ce2 commit 8c198cf

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

556556
def warnings(using Context): Array[MessageInfo] =
557-
val actionable = ctx.settings.rewrite.value.nonEmpty
557+
val actionable: true = true //ctx.settings.rewrite.value.nonEmpty
558558
val warnings = ArrayBuilder.make[MessageInfo]
559559
def warnAt(pos: SrcPos)(msg: UnusedSymbol, origin: String = Diagnostic.OriginWarning.NoOrigin): Unit =
560560
warnings.addOne((msg, pos, origin))

0 commit comments

Comments
 (0)