Skip to content

Commit 3fd4fd0

Browse files
committed
fix(script_plguins): rustc_ast::ast::AttrKind::Normal fields are now boxed
<rust-lang/rust#100441>
1 parent 52ebde8 commit 3fd4fd0

File tree

1 file changed

+4
-4
lines changed
  • components/script_plugins

1 file changed

+4
-4
lines changed

components/script_plugins/lib.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ fn has_lint_attr(sym: &Symbols, attrs: &[Attribute], name: Symbol) -> bool {
8383
attrs.iter().any(|attr| {
8484
matches!(
8585
&attr.kind,
86-
AttrKind::Normal(attr_item, _)
87-
if attr_item.path.segments.len() == 2 &&
88-
attr_item.path.segments[0].ident.name == sym.unrooted_must_root_lint &&
89-
attr_item.path.segments[1].ident.name == name
86+
AttrKind::Normal(normal)
87+
if normal.item.path.segments.len() == 2 &&
88+
normal.item.path.segments[0].ident.name == sym.unrooted_must_root_lint &&
89+
normal.item.path.segments[1].ident.name == name
9090
)
9191
})
9292
}

0 commit comments

Comments
 (0)