File tree 1 file changed +1
-6
lines changed
compiler/src/dotty/tools/dotc/transform
1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -471,7 +471,7 @@ object CheckUnused:
471
471
if ctx.settings.WunusedHas .implicits then
472
472
implicitParamInScope
473
473
.filterNot(d => d.symbol.usedDefContains)
474
- .filterNot(d => containsSyntheticSuffix(d.symbol) && ( ! d.rawMods.is( Given ) || hasZeroLengthSpan(d.symbol)) )
474
+ .filterNot(d => containsSyntheticSuffix(d.symbol))
475
475
.map(d => d.namePos -> WarnTypes .ImplicitParams ).toList
476
476
else
477
477
Nil
@@ -519,11 +519,6 @@ object CheckUnused:
519
519
private def containsSyntheticSuffix (symbol : Symbol )(using Context ): Boolean =
520
520
symbol.name.mangledString.contains(" $" )
521
521
522
- /**
523
- * Heuristic to detect generated symbols by checking if symbol has zero length span in source
524
- */
525
- private def hasZeroLengthSpan (symbol : Symbol )(using Context ): Boolean =
526
- symbol.span.end - symbol.span.start == 0
527
522
/**
528
523
* Is the the constructor of synthetic package object
529
524
* Should be ignored as it is always imported/used in package
You can’t perform that action at this time.
0 commit comments