summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/doc/Uncompilable.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/scala/tools/nsc/doc/Uncompilable.scala')
-rw-r--r--src/compiler/scala/tools/nsc/doc/Uncompilable.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/doc/Uncompilable.scala b/src/compiler/scala/tools/nsc/doc/Uncompilable.scala
index 1f0c85361e..9b29ebd745 100644
--- a/src/compiler/scala/tools/nsc/doc/Uncompilable.scala
+++ b/src/compiler/scala/tools/nsc/doc/Uncompilable.scala
@@ -13,7 +13,7 @@ trait Uncompilable {
val global: Global
val settings: Settings
- import global.{ reporter, inform, warning, newTypeName, newTermName, Symbol, Name, DocComment }
+ import global.{ reporter, inform, warning, newTypeName, newTermName, Symbol, Name, DocComment, NoSymbol }
import global.definitions.RootClass
private implicit def translateName(name: Global#Name) =
@@ -43,6 +43,6 @@ trait Uncompilable {
pairs
}
override def toString = pairs.size + " uncompilable symbols:\n" + (
- symbols map (x => " " + x.owner.fullName + " " + x.defString) mkString "\n"
+ symbols filterNot (_ == NoSymbol) map (x => " " + x.owner.fullName + " " + x.defString) mkString "\n"
)
}