Skip to content

Commit 11501ea

Browse files
committed
Rename nested_meta to meta_item_inner
1 parent 9b85c62 commit 11501ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_ast_passes/src/feature_gate.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,9 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> {
186186
}
187187
// Check unstable flavors of the `#[doc]` attribute.
188188
if attr.has_name(sym::doc) {
189-
for nested_meta in attr.meta_item_list().unwrap_or_default() {
189+
for meta_item_inner in attr.meta_item_list().unwrap_or_default() {
190190
macro_rules! gate_doc { ($($s:literal { $($name:ident => $feature:ident)* })*) => {
191-
$($(if nested_meta.has_name(sym::$name) {
191+
$($(if meta_item_inner.has_name(sym::$name) {
192192
let msg = concat!("`#[doc(", stringify!($name), ")]` is ", $s);
193193
gate!(self, $feature, attr.span, msg);
194194
})*)*

0 commit comments

Comments
 (0)