about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Henry-Mantilla <daniel.henry.mantilla@gmail.com>2021-01-05 14:34:32 +0100
committerDaniel Henry-Mantilla <daniel.henry.mantilla@gmail.com>2021-01-06 15:13:39 +0100
commitce3ecd612f2ac52770293201848de733c86dcaaa (patch)
tree4c9bf8d9b9010f71bf1bba74569767cbf38c40c0
parent8df60663cc5331f1c911766975619932b8e18bb0 (diff)
downloadrust-ce3ecd612f2ac52770293201848de733c86dcaaa.tar.gz
rust-ce3ecd612f2ac52770293201848de733c86dcaaa.zip
Style nit: avoid confusing name shadowing in pattern match
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
-rw-r--r--src/librustdoc/clean/inline.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/clean/inline.rs b/src/librustdoc/clean/inline.rs
index beb2c09fecc..ee45f74666a 100644
--- a/src/librustdoc/clean/inline.rs
+++ b/src/librustdoc/clean/inline.rs
@@ -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 {