1
Fork 0

Style nit: avoid confusing name shadowing in pattern match

Co-authored-by: Joshua Nelson <joshua@yottadb.com>
This commit is contained in:
Daniel Henry-Mantilla 2021-01-05 14:34:32 +01:00
parent 8df60663cc
commit ce3ecd612f

View file

@ -173,8 +173,8 @@ crate fn record_extern_fqn(cx: &DocContext<'_>, did: DefId, kind: clean::TypeKin
if matches!(
cx.enter_resolver(|r| r.cstore().load_macro_untracked(did, cx.sess())),
LoadedMacro::MacroDef(def, _)
if matches!(&def.kind, ast::ItemKind::MacroDef(def)
if !def.macro_rules)
if matches!(&def.kind, ast::ItemKind::MacroDef(ast_def)
if !ast_def.macro_rules)
) {
once(crate_name).chain(relative).collect()
} else {