Skip to content

Commit ce3ecd6

Browse files
danielhenrymantillaJoshua Nelson
and
Joshua Nelson
committed
Style nit: avoid confusing name shadowing in pattern match
Co-authored-by: Joshua Nelson <[email protected]>
1 parent 8df6066 commit ce3ecd6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustdoc/clean/inline.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ crate fn record_extern_fqn(cx: &DocContext<'_>, did: DefId, kind: clean::TypeKin
173173
if matches!(
174174
cx.enter_resolver(|r| r.cstore().load_macro_untracked(did, cx.sess())),
175175
LoadedMacro::MacroDef(def, _)
176-
if matches!(&def.kind, ast::ItemKind::MacroDef(def)
177-
if !def.macro_rules)
176+
if matches!(&def.kind, ast::ItemKind::MacroDef(ast_def)
177+
if !ast_def.macro_rules)
178178
) {
179179
once(crate_name).chain(relative).collect()
180180
} else {

0 commit comments

Comments
 (0)