Don't try get local DefId of imported macro in rustdoc.
This commit is contained in:
parent
77e659a6d3
commit
3a82b0da3d
3 changed files with 8 additions and 6 deletions
|
@ -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>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue