Skip to content

Commit 2d493f3

Browse files
som-snytttgodzik
authored andcommitted
Unused imports emits actions always
[Cherry-picked 9ec1f84]
1 parent 66e85df commit 2d493f3

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

534534
def warnings(using Context): Array[MessageInfo] =
535-
val actionable = ctx.settings.rewrite.value.nonEmpty
535+
val actionable: true = true //ctx.settings.rewrite.value.nonEmpty
536536
val warnings = ArrayBuilder.make[MessageInfo]
537537
def warnAt(pos: SrcPos)(msg: UnusedSymbol, origin: String = Diagnostic.OriginWarning.NoOrigin): Unit =
538538
warnings.addOne((msg, pos, origin))

0 commit comments

Comments
 (0)