mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-06 01:38:35 +00:00
Style nit: avoid confusing name shadowing in pattern match
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user