]> git.lizzy.rs Git - rust.git/commit
Reformat metadata for exported macros
authorKeegan McAllister <kmcallister@mozilla.com>
Wed, 31 Dec 2014 03:10:46 +0000 (19:10 -0800)
committerKeegan McAllister <kmcallister@mozilla.com>
Mon, 5 Jan 2015 20:00:57 +0000 (12:00 -0800)
commit677b7cad3d0ca1347f65ae9b409078343a5f302e
tree014e59bc3d1295b22d98b2c923396c0683965c6d
parent24aa7f0e387e2a04795e80bc91b8b8adf6a1c98f
Reformat metadata for exported macros

Instead of copy-pasting the whole macro_rules! item from the original .rs file,
we serialize a separate name, attributes list, and body, the latter as
pretty-printed TTs.  The compilation of macro_rules! macros is decoupled
somewhat from the expansion of macros in item position.

This filters out comments, and facilitates selective imports.
12 files changed:
src/librustc/metadata/common.rs
src/librustc/metadata/creader.rs
src/librustc/metadata/decoder.rs
src/librustc/metadata/encoder.rs
src/librustc/plugin/load.rs
src/librustdoc/visit_ast.rs
src/libsyntax/ast.rs
src/libsyntax/ext/base.rs
src/libsyntax/ext/expand.rs
src/libsyntax/ext/tt/macro_rules.rs
src/libsyntax/fold.rs
src/libsyntax/parse/mod.rs