Skip to content

Commit 3394e7c

Browse files
committed
Rename nested_meta to meta_item_inner
1 parent 67ed436 commit 3394e7c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

compiler/rustc_resolve/src/build_reduced_graph.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -1198,8 +1198,10 @@ impl<'a, 'ra, 'tcx> BuildReducedGraphVisitor<'a, 'ra, 'tcx> {
11981198
} else if attr::contains_name(&item.attrs, sym::proc_macro_attribute) {
11991199
return Some((MacroKind::Attr, item.ident, item.span));
12001200
} else if let Some(attr) = attr::find_by_name(&item.attrs, sym::proc_macro_derive) {
1201-
if let Some(nested_meta) = attr.meta_item_list().and_then(|list| list.get(0).cloned()) {
1202-
if let Some(ident) = nested_meta.ident() {
1201+
if let Some(meta_item_inner) =
1202+
attr.meta_item_list().and_then(|list| list.get(0).cloned())
1203+
{
1204+
if let Some(ident) = meta_item_inner.ident() {
12031205
return Some((MacroKind::Derive, ident, ident.span));
12041206
}
12051207
}

0 commit comments

Comments
 (0)