diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2013-12-07 15:20:47 +0100 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2013-12-30 19:07:05 +0300 |
commit | 0019bc2c4b7d89b61c71f18177823afdcd27bb78 (patch) | |
tree | 26cc6229d3c818a2d56f1603dcef2e3fea658439 /tools/jar-dump | |
parent | 68b8e23585b5bbf7ff40d585634a7f07680c278b (diff) | |
download | scala-0019bc2c4b7d89b61c71f18177823afdcd27bb78.tar.gz scala-0019bc2c4b7d89b61c71f18177823afdcd27bb78.tar.bz2 scala-0019bc2c4b7d89b61c71f18177823afdcd27bb78.zip |
humane reporting of macro impl binding version errors
Macro defs are linked to macro impls by the virtue of MacroImplBinding
structures that are persisted between compilation runs serialized within
instances of macroImpl annotations.
Along with the evolution of our macro engine, we sometimes have to evolve
the format of MacroImplBinding, which means that it has to be versioned.
Version mismatches are checked upon every macro expansion, ensuring that
macros that we expand were compiled with exactly the same version of the
macro engine that we’re running.
That’s all really cool apart from the fact that version mismatches result
in aborting the entire compilation with an obscure message without giving
a hint about the culprits.
This commit improves the situation by providing pretty per-expansion
compilation errors that tell the programmer what macro expansions are
at fault and what macro engines were used to compile them.
Diffstat (limited to 'tools/jar-dump')
0 files changed, 0 insertions, 0 deletions