Skip to content

Commit 9d27448

Browse files
som-snytttgodzik
authored andcommitted
Revert unconditional lint of Inlined
1 parent 4877ed3 commit 9d27448

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ class CheckUnused private (phaseMode: PhaseMode, suffix: String) extends MiniPha
131131
refInfos.inlined.push(tree.call.srcPos)
132132
ctx
133133
override def transformInlined(tree: Inlined)(using Context): tree.type =
134+
//transformAllDeep(tree.expansion) // traverse expansion with nonempty inlined stack to avoid registering defs
134135
val _ = refInfos.inlined.pop()
135136
if !tree.call.isEmpty && phaseMode.eq(PhaseMode.Aggregate) then
136137
transformAllDeep(tree.call)

0 commit comments

Comments
 (0)