Skip to content

Commit 9e7076b

Browse files
Fix invalid jump to def link generated on derive attributes
1 parent b2ee1b3 commit 9e7076b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/librustdoc/html/render/span_map.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ use rustc_hir::intravisit::{self, Visitor, VisitorExt};
77
use rustc_hir::{ExprKind, HirId, Item, ItemKind, Mod, Node, QPath};
88
use rustc_middle::hir::nested_filter;
99
use rustc_middle::ty::TyCtxt;
10-
use rustc_span::hygiene::MacroKind;
1110
use rustc_span::{BytePos, ExpnKind};
1211

1312
use crate::clean::{self, PrimitiveType, rustc_span};
@@ -194,7 +193,7 @@ impl SpanMapVisitor<'_> {
194193
}
195194

196195
let macro_name = match data.kind {
197-
ExpnKind::Macro(MacroKind::Bang, macro_name) => macro_name,
196+
ExpnKind::Macro(_, macro_name) => macro_name,
198197
// Even though we don't handle this kind of macro, this `data` still comes from
199198
// expansion so we return `true` so we don't go any deeper in this code.
200199
_ => return true,

0 commit comments

Comments
 (0)