File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -478,7 +478,7 @@ object CheckUnused:
478478 if ctx.settings.WunusedHas .implicits then
479479 implicitParamInScope
480480 .filterNot(d => d.symbol.usedDefContains)
481- .filterNot(d => containsSyntheticSuffix(d.symbol) && ( ! d.rawMods.is( Given ) || hasZeroLengthSpan(d.symbol)) )
481+ .filterNot(d => containsSyntheticSuffix(d.symbol))
482482 .map(d => d.namePos -> WarnTypes .ImplicitParams ).toList
483483 else
484484 Nil
@@ -526,11 +526,6 @@ object CheckUnused:
526526 private def containsSyntheticSuffix (symbol : Symbol )(using Context ): Boolean =
527527 symbol.name.mangledString.contains(" $" )
528528
529- /**
530- * Heuristic to detect generated symbols by checking if symbol has zero length span in source
531- */
532- private def hasZeroLengthSpan (symbol : Symbol )(using Context ): Boolean =
533- symbol.span.end - symbol.span.start == 0
534529 /**
535530 * Is the the constructor of synthetic package object
536531 * Should be ignored as it is always imported/used in package
You can’t perform that action at this time.
0 commit comments