diff options
author | Paul Phillips <paulp@improving.org> | 2013-02-01 17:53:06 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2013-02-01 17:53:06 -0800 |
commit | 29128012800ac99e05552b0d52246c2691f18b83 (patch) | |
tree | e2c126dd7ffbe5fede4f0d46d57b3bfb597b8fdc /src/compiler/scala/tools/nsc/typechecker/ContextErrors.scala | |
parent | a75cb0adbd919d762381de983d795e1f9723e37c (diff) | |
parent | 01eb6f4958b64667dfae6240effa55d44fa0d392 (diff) | |
download | scala-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.scala | 10 |
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) + } } } |