summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2013-02-01 17:53:06 -0800
committerPaul Phillips <paulp@improving.org>2013-02-01 17:53:06 -0800
commit29128012800ac99e05552b0d52246c2691f18b83 (patch)
treee2c126dd7ffbe5fede4f0d46d57b3bfb597b8fdc /src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala
parenta75cb0adbd919d762381de983d795e1f9723e37c (diff)
parent01eb6f4958b64667dfae6240effa55d44fa0d392 (diff)
downloadscala-29128012800ac99e05552b0d52246c2691f18b83.tar.gz
scala-29128012800ac99e05552b0d52246c2691f18b83.tar.bz2
scala-29128012800ac99e05552b0d52246c2691f18b83.zip
Merge commit '01eb6f4958' into wip/fresh-merge2
Conflicts: src/compiler/scala/tools/nsc/typechecker/Macros.scala
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala b/src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala
index 4e4513dcef..580f024b40 100644
--- a/src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala
@@ -772,10 +772,14 @@ trait ContextErrors {
))
}
- def MacroImplementationNotFoundError(expandee: Tree) =
- macroExpansionError(expandee,
+ def MacroImplementationNotFoundError(expandee: Tree) = {
+ val message =
"macro implementation not found: " + expandee.symbol.name + " " +
- "(the most common reason for that is that you cannot use macro implementations in the same compilation run that defines them)")
+ "(the most common reason for that is that you cannot use macro implementations in the same compilation run that defines them)" +
+ (if (forScaladoc) ". When generating scaladocs for multiple projects at once, consider using -Ymacro-no-expand to disable macro expansions altogether."
+ else "")
+ macroExpansionError(expandee, message)
+ }
}
}