]> git.lizzy.rs Git - rust.git/commit
repair macro docs
authorJohn Clements <clements@racket-lang.org>
Thu, 17 Jul 2014 16:45:31 +0000 (09:45 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 21 Jul 2014 16:54:07 +0000 (09:54 -0700)
commit1607064cfed6d7d4d963de8bb038079592b20995
treecb4afebfdfe38a721ebac78152b7b6cc65d20201
parente8c9d21130ff2f25b18978119e1f123a219af056
repair macro docs

In f1ad425199b0d89dab275a8c8f6f29a73d316f70, I changed the handling
of macros, to prevent macro invocations from occurring in fully expanded
source. Instead, I added a side table. It contained only the
spans of the macros, because this was the only information required
in order to make macro export work.

However, librustdoc was also affected by this change, since it
extracts macro information in a similar way. As a result of the earlier
change, exported macros were no longer documented.

In order to repair this, I've adjusted the side table to contain whole
items, rather than just the spans.
src/librustc/metadata/encoder.rs
src/librustdoc/visit_ast.rs
src/libsyntax/ast.rs
src/libsyntax/ext/base.rs
src/libsyntax/ext/expand.rs
src/libsyntax/fold.rs