diff options
| author | Steven Fackler <sfackler@gmail.com> | 2014-01-21 23:09:53 -0800 |
|---|---|---|
| committer | Steven Fackler <sfackler@gmail.com> | 2014-01-23 09:01:36 -0800 |
| commit | d908e97da34ecc419024ddcf5004033920ebb9a9 (patch) | |
| tree | fc65d429f6aff281da985f0531367fbc2d20eebe /src/libsyntax/ext/quote.rs | |
| parent | f8477c9da5ed784f5981611b6c12623cd2b44806 (diff) | |
| download | rust-d908e97da34ecc419024ddcf5004033920ebb9a9.tar.gz rust-d908e97da34ecc419024ddcf5004033920ebb9a9.zip | |
Redo exported macro serialization
The old method of serializing the AST gives totally bogus spans if the expansion of an imported macro causes compilation errors. The best solution seems to be to serialize the actual textual macro definition and load it the same way the std-macros are. I'm not totally confident that getting the source from the CodeMap will always do the right thing, but it seems to work in simple cases.
Diffstat (limited to 'src/libsyntax/ext/quote.rs')
| -rw-r--r-- | src/libsyntax/ext/quote.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/libsyntax/ext/quote.rs b/src/libsyntax/ext/quote.rs index f840bde6dc1..6faed270875 100644 --- a/src/libsyntax/ext/quote.rs +++ b/src/libsyntax/ext/quote.rs @@ -250,7 +250,6 @@ pub mod rt { @"<quote expansion>", s, self.cfg(), - ~[], self.parse_sess()); match res { Some(ast) => ast, |
