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 @@ -478,7 +478,7 @@ object CheckUnused:
478
478
if ctx.settings.WunusedHas .implicits then
479
479
implicitParamInScope
480
480
.filterNot(d => d.symbol.usedDefContains)
481
- .filterNot(d => containsSyntheticSuffix(d.symbol) && ( ! d.rawMods.is( Given ) || hasZeroLengthSpan(d.symbol)) )
481
+ .filterNot(d => containsSyntheticSuffix(d.symbol))
482
482
.map(d => d.namePos -> WarnTypes .ImplicitParams ).toList
483
483
else
484
484
Nil
@@ -526,11 +526,6 @@ object CheckUnused:
526
526
private def containsSyntheticSuffix (symbol : Symbol )(using Context ): Boolean =
527
527
symbol.name.mangledString.contains(" $" )
528
528
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
534
529
/**
535
530
* Is the the constructor of synthetic package object
536
531
* Should be ignored as it is always imported/used in package
You can’t perform that action at this time.
0 commit comments