Skip to content

Commit

Permalink
Remove support for proc macro doc inlining
Browse files Browse the repository at this point in the history
  • Loading branch information
weiznich committed Dec 4, 2018
1 parent 11fb023 commit 9d4e17a
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions src/librustdoc/clean/inline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,23 +106,13 @@ pub fn try_inline(cx: &DocContext, def: Def, name: ast::Name, visited: &mut FxHa
clean::ConstantItem(build_const(cx, did))
}
// FIXME: proc-macros don't propagate attributes or spans across crates, so they look empty
Def::Macro(did, MacroKind::Derive) |
Def::Macro(did, MacroKind::Bang) => {
let mac = build_macro(cx, did, name);
debug!("try_inline: {:?}", mac);

match build_macro(cx, did, name) {
clean::MacroItem(..) => {
record_extern_fqn(cx, did, clean::TypeKind::Macro);
mac
}
clean::ProcMacroItem(..) => {
record_extern_fqn(cx, did, clean::TypeKind::Derive);
mac
}
_ => {
return None;
}
if let clean::MacroItem(..) = mac {
record_extern_fqn(cx, did, clean::TypeKind::Macro);
mac
} else {
return None;
}
}
_ => return None,
Expand Down

0 comments on commit 9d4e17a

Please sign in to comment.