Skip to content

Commit a57686d

Browse files
committed
Make rustdoc deal with macros. Rustdoc still fails, though; we think it needs to do an unparallelized, non-failure-ignoring resolve.
1 parent 0930b95 commit a57686d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/rustdoc/astsrv.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ fn build_ctxt(sess: session,
107107
import rustc::front::config;
108108

109109
let ast = config::strip_unconfigured_items(ast);
110+
let ast = syntax::ext::expand::expand_crate(sess.parse_sess,
111+
sess.opts.cfg, ast);
110112
let ast = front::test::modify_for_testing(sess, ast);
111113
let ast_map = ast_map::map_crate(sess.diagnostic(), *ast);
112114

0 commit comments

Comments
 (0)