• S
    Redo exported macro serialization · d908e97d
    Steven Fackler 提交于
    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.
    d908e97d
base.rs 20.2 KB