1
Fork 0

Don't try get local DefId of imported macro in rustdoc.

This commit is contained in:
Michael Woerister 2016-12-19 14:24:33 -05:00
parent 77e659a6d3
commit 3a82b0da3d
3 changed files with 8 additions and 6 deletions

View file

@ -233,9 +233,11 @@ pub struct DefaultImpl {
pub whence: Span,
}
// For Macro we store the DefId instead of the NodeId, since we also create
// these imported macro_rules (which only have a DUMMY_NODE_ID).
pub struct Macro {
pub name: Name,
pub id: ast::NodeId,
pub def_id: hir::def_id::DefId,
pub attrs: hir::HirVec<ast::Attribute>,
pub whence: Span,
pub matchers: hir::HirVec<Span>,